if not errorlevel 1 mv -f %XSRC%/data/c++.m4 %XSRC%/data/cxx.m4\r
test -f %XSRC%/data/cxx.m4\r
if errorlevel 1 mv -f %XSRC%/data/cpp.m4 %XSRC%/data/cxx.m4\r
+test -f %XSRC%/data/c++-skel.m4\r
+if not errorlevel 1 mv -f %XSRC%/data/c++-skel.m4 %XSRC%/data/cxx-skel.m4\r
+test -f %XSRC%/data/cxx-skel.m4\r
+if errorlevel 1 mv -f %XSRC%/data/cpp-skel.m4 %XSRC%/data/cxx-skel.m4\r
+\r
:scan_gram_c_Test\r
test -f %XSRC%/src/c-scan-gram.c\r
if not errorlevel 1 goto scan_skel_c_Test\r
if errorlevel 1 goto lalr1_ccFileError\r
mv ./lalr1.cc %XSRC%/data/lalr1.cc\r
sed "s/c++\.m4/cxx.m4/" %XSRC%/data/location.cc > location.cc\r
-if errorlevel 1 goto location.ccFileError\r
+if errorlevel 1 goto location_ccFileError\r
mv ./location.cc %XSRC%/data/location.cc\r
sed "s/c++\.m4/cxx.m4/" %XSRC%/data/glr.cc > glr.cc\r
-if errorlevel 1 goto glr.ccFileError\r
+if errorlevel 1 goto glr_ccFileError\r
mv ./glr.cc %XSRC%/data/glr.cc\r
\r
+Rem Fix src/getargs.c to reflect the renaming of c++-skel.m4\r
+sed "s/c++-skel\.m4/cxx-skel.m4/" %XSRC%/src/getargs.c > getargs.c\r
+if errorlevel 1 goto getargs_cFileError\r
+mv ./getargs.c %XSRC%/src/getargs.c\r
+\r
Rem Define DJGPP specific defs in config.hin\r
echo Editing config.hin...\r
test -f %XSRC%/lib/config_h.org\r
test -f %XSRC%/tests/c++.at\r
if not errorlevel 1 mv -f %XSRC%/tests/c++.at %XSRC%/tests/cxx.at\r
\r
+test -f %XSRC%/tests/testsuite.org\r
+if errorlevel 1 update %XSRC%/tests/testsuite %XSRC%/tests/testsuite.org\r
+sed -f %XSRC%/djgpp/testsuite.sed %XSRC%/tests/testsuite.org > testsuite.tmp\r
+if errorlevel 1 goto SedError3\r
+mv -f ./testsuite.tmp %XSRC%/tests/testsuite\r
+\r
Rem Fixing ilicit calc++ file names in the calc++ directory.\r
test -d %XSRC%/examples/calc++\r
if not errorlevel 1 mv -f %XSRC%/examples/calc++ %XSRC%/examples/calcxx\r
echo ./data/glr.cc file editing failed!\r
goto End\r
\r
+:getargs_cFileError\r
+echo ./src/getargs.c file editing failed!\r
+goto End\r
+\r
:location_ccFileError\r
echo ./data/location.cc file editing failed!\r
goto End\r
goto End\r
\r
:SedError2\r
-echo ./config.hin editing failed!\r
+echo ./lib/config.hin editing failed!\r
+goto End\r
+\r
+:SedError3\r
+echo ./tests/testsuite editing failed!\r
goto End\r
\r
:CfgError\r