X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3768a1ae181a50b4ee42713ef50377a2328c42f7..69ce078b8cf61eb5087b91538d79a1143ce77c46:/djgpp/config.bat diff --git a/djgpp/config.bat b/djgpp/config.bat index caea6b8a..df9e508c 100644 --- a/djgpp/config.bat +++ b/djgpp/config.bat @@ -170,10 +170,13 @@ 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 -Rem Fix data/lalr1.cc to reflect the renaming of c++.m4 +Rem Fix data/lalr1.cc and data/location.cc to reflect the renaming of c++.m4 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 +mv ./location.cc %XSRC%/data/location.cc Rem Define DJGPP specific defs in config.hin echo Editing config.hin... @@ -381,6 +384,10 @@ goto End echo ./data/lalr1.cc file editing failed! goto End +:location_ccFileError +echo ./data/location.cc file editing failed! +goto End + :calcxxFileError echo ./examples/calcxx file editing failed! goto End