\r
Rem Copyright (C) 2005, 2006 Free Software Foundation, Inc.\r
\r
-Rem This program is free software; you can redistribute it and/or modify\r
+Rem This program is free software: you can redistribute it and/or modify\r
Rem it under the terms of the GNU General Public License as published by\r
-Rem the Free Software Foundation; either version 2, or (at your option)\r
-Rem any later version.\r
-\r
+Rem the Free Software Foundation, either version 3 of the License, or\r
+Rem (at your option) any later version.\r
+Rem\r
Rem This program is distributed in the hope that it will be useful,\r
Rem but WITHOUT ANY WARRANTY; without even the implied warranty of\r
Rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
Rem GNU General Public License for more details.\r
-\r
+Rem\r
Rem You should have received a copy of the GNU General Public License\r
-Rem along with this program; if not, write to the Free Software Foundation,\r
-Rem Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
+Rem along with this program. If not, see <http://www.gnu.org/licenses/>.\r
\r
echo Configuring Bison for DJGPP v2.x...\r
\r
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