BigInt v1.68 - pre-release
[p5sagit/p5-mst-13.2.git] / perly.fixer
index 1c07724..b627a8c 100755 (executable)
@@ -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"