Use name cxx.m4 instead of c++.m4 in data/location.cc

This commit is contained in:
Juan Manuel Guerrero
2005-10-03 05:35:57 +00:00
parent fb32e3730e
commit c59929c351

View File

@@ -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