Replace file name scan-gram-c.c with scangram-c.c and

scan-skel-c.c with /src/scanskel-c.c to conform with
the 8.3 file name restriction on MSDOS.
This commit is contained in:
Juan Manuel Guerrero
2005-12-21 00:01:28 +00:00
parent 69474954ac
commit 90ddbd5eed
2 changed files with 16 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
@echo off @echo off
Rem WARNING WARNING WARNING: This file needs to have DOS CRLF end-of-line
Rem format, or else stock DOS/Windows shells will refuse to run it.
echo Configuring GNU Bison for DJGPP v2.x... echo Configuring GNU Bison for DJGPP v2.x...
Rem The SmallEnv tests protect against fixed and too small size Rem The SmallEnv tests protect against fixed and too small size
@@ -169,7 +172,18 @@ test -f %XSRC%/data/c++.m4
if not errorlevel 1 mv -f %XSRC%/data/c++.m4 %XSRC%/data/cxx.m4 if not errorlevel 1 mv -f %XSRC%/data/c++.m4 %XSRC%/data/cxx.m4
test -f %XSRC%/data/cxx.m4 test -f %XSRC%/data/cxx.m4
if errorlevel 1 mv -f %XSRC%/data/cpp.m4 %XSRC%/data/cxx.m4 if errorlevel 1 mv -f %XSRC%/data/cpp.m4 %XSRC%/data/cxx.m4
:scan_gram_c_Test
test -f %XSRC%/src/c-scan-gram.c
if not errorlevel 1 goto scan_skel_c_Test
test -f %XSRC%/src/scan-gram-c.c
if not errorlevel 1 mv -f %XSRC%/src/scan-gram-c.c %XSRC%/src/c-scan-gram.c
:scan_skel_c_Test
test -f %XSRC%/src/c-scan-skel.c
if not errorlevel 1 goto FixFiles
test -f %XSRC%/src/scan-skel-c.c
if not errorlevel 1 mv -f %XSRC%/src/scan-skel-c.c %XSRC%/src/c-scan-skel.c
:FixFiles
Rem Fix data/lalr1.cc and data/location.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 sed "s/c++\.m4/cxx.m4/" %XSRC%/data/lalr1.cc > lalr1.cc
if errorlevel 1 goto lalr1_ccFileError if errorlevel 1 goto lalr1_ccFileError

View File

@@ -10,6 +10,8 @@
s,c++\\.at,cxx.at,g;t t\ s,c++\\.at,cxx.at,g;t t\
s,c++\\.m4,cxx.m4,g;t t\ s,c++\\.m4,cxx.m4,g;t t\
s,calc++,calcxx,g;t t\ s,calc++,calcxx,g;t t\
s,scan-gram-c,c-scan-gram,g;t t\
s,scan-skel-c,c-scan-skel,g;t t\
s,Makefile\\.in\\.in,Makefile.in-in,g;t t\ s,Makefile\\.in\\.in,Makefile.in-in,g;t t\
s,Makefile\\.am\\.in,Makefile.am-in,g;t t\ s,Makefile\\.am\\.in,Makefile.am-in,g;t t\
s,(MAKEINFOFLAGS),& --no-split,\ s,(MAKEINFOFLAGS),& --no-split,\