X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7ac22ca61d8f09112fb613d4e605e9332a0f7ec6..9b33de72cd2469bedac2b5f0a48a8782571ea9db:/djgpp/config.bat diff --git a/djgpp/config.bat b/djgpp/config.bat index 98efa8a0..aee4b55d 100644 --- a/djgpp/config.bat +++ b/djgpp/config.bat @@ -209,6 +209,11 @@ test -f %XSRC%/data/c++.m4 if not errorlevel 1 mv -f %XSRC%/data/c++.m4 %XSRC%/data/cxx.m4 test -f %XSRC%/data/cxx.m4 if errorlevel 1 mv -f %XSRC%/data/cpp.m4 %XSRC%/data/cxx.m4 +test -f %XSRC%/data/c++-skel.m4 +if not errorlevel 1 mv -f %XSRC%/data/c++-skel.m4 %XSRC%/data/cxx-skel.m4 +test -f %XSRC%/data/cxx-skel.m4 +if errorlevel 1 mv -f %XSRC%/data/cpp-skel.m4 %XSRC%/data/cxx-skel.m4 + :scan_gram_c_Test test -f %XSRC%/src/c-scan-gram.c if not errorlevel 1 goto scan_skel_c_Test @@ -226,12 +231,17 @@ sed "s/c++\.m4/cxx.m4/" %XSRC%/data/lalr1.cc > lalr1.cc if errorlevel 1 goto lalr1_ccFileError mv ./lalr1.cc %XSRC%/data/lalr1.cc sed "s/c++\.m4/cxx.m4/" %XSRC%/data/location.cc > location.cc -if errorlevel 1 goto location.ccFileError +if errorlevel 1 goto location_ccFileError mv ./location.cc %XSRC%/data/location.cc sed "s/c++\.m4/cxx.m4/" %XSRC%/data/glr.cc > glr.cc -if errorlevel 1 goto glr.ccFileError +if errorlevel 1 goto glr_ccFileError mv ./glr.cc %XSRC%/data/glr.cc +Rem Fix src/getargs.c to reflect the renaming of c++-skel.m4 +sed "s/c++-skel\.m4/cxx-skel.m4/" %XSRC%/src/getargs.c > getargs.c +if errorlevel 1 goto getargs_cFileError +mv ./getargs.c %XSRC%/src/getargs.c + Rem Define DJGPP specific defs in config.hin echo Editing config.hin... test -f %XSRC%/lib/config_h.org @@ -448,6 +458,10 @@ goto End echo ./data/glr.cc file editing failed! goto End +:getargs_cFileError +echo ./src/getargs.c file editing failed! +goto End + :location_ccFileError echo ./data/location.cc file editing failed! goto End