X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perly.fixer;h=b627a8c2bd43b322495b633d7153a46c88ddf015;hb=b282a5527464951004e354d07709b58fcb3bdad0;hp=1c07724e630740250544e59fbf0683ba7933dfaf;hpb=2b21cd67dc9d2805d732dbf7a8cc0224518df145;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perly.fixer b/perly.fixer index 1c07724..b627a8c 100755 --- a/perly.fixer +++ b/perly.fixer @@ -10,7 +10,7 @@ # Currently, only byacc version 1.8 is fully supported. # # Hacks to make it work with Interactive's SysVr3 Version 2.2 -# doughera@lafvax.lafayette.edu (Andy Dougherty) 3/23/91 +# doughera@lafayette.edu (Andy Dougherty) 3/23/91 # # Additional information to make the BSD section work with SunOS 4.0.2 # tdinger@East.Sun.COM (Tom Dinger) 4/15/1991 @@ -19,7 +19,7 @@ # gnupatch=patch -. config.sh +. ./config.sh input=$1 output=$2 @@ -52,6 +52,7 @@ if grep 'yaccpar 1.8 (Berkeley)' $input >/dev/null 2>&1; then -e 's/^yynewerror:$//' \ -e 's/^ goto yynewerror;//' \ -e 's|^static char yysccsid\(.*\)|/* static char yysccsid\1 */|' \ + -e 's|deprecate(|deprecate_old(|' \ < $output > $tmp && mv -f $tmp $output || exit 1 rm -rf $input echo "If you need to debug perly.c, you need to fix up the #line" @@ -72,6 +73,7 @@ elif grep 'yaccpar 1.9 (Berkeley)' $input >/dev/null 2>&1; then -e 's/^yynewerror:$//' \ -e 's/^ goto yynewerror;//' \ -e 's|^static char yysccsid\(.*\)|/* static char yysccsid\1 */|' \ + -e 's|deprecate(|deprecate_old(|' \ < $output > $tmp && mv -f $tmp $output || exit 1 rm -rf $input echo "If you need to debug perly.c, you need to fix up the #line"