remove ylwrap patching
authorChristos Zoulas <christos@zoulas.com>
Tue, 28 Oct 2014 18:24:41 +0000 (14:24 -0400)
committerChristos Zoulas <christos@zoulas.com>
Tue, 28 Oct 2014 18:24:41 +0000 (14:24 -0400)
bootstrap

index a370d191c2873c13672576d83696179d4a4bfc83..000b01670abffbf0b6ac0a5750695a595669d20d 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -57,51 +57,6 @@ else
     exit 2
 fi
 
-echo "AMU: Fixing ylwrap..."
-patch << \EOF
---- ylwrap.orig        2014-05-08 21:18:30.000000000 -0400
-+++ ylwrap     2014-05-09 22:25:54.900240000 -0400
-@@ -153,6 +153,22 @@
-   *[\\/]*) prog="`pwd`/$prog" ;;
- esac
-+prefix=`echo $input | sed \
-+      -e 's,^.*/,,g' \
-+      -e 's/_gram.[yl]$/_/g' \
-+      -e 's/_lex.[yl]$/_/g' \
-+      -e 's/_parse.[yl]$/_/g' \
-+      -e 's/_tok.[yl]$/_/g'`
-+
-+case "$prog" in
-+*lex)
-+      flags="-P${prefix}"
-+      out="mv lex.$prefix.c lex.yy.c"
-+      ;;
-+yacc|bison)
-+      flags="-p $prefix";;
-+esac
-+
- # FIXME: add hostname here for parallel makes that run commands on
- # other machines.  But that might take us over the 14-char limit.
- dirname=ylwrap$$
-@@ -166,10 +182,13 @@
- cd $dirname
- case $# in
--  0) "$prog" "$input" ;;
--  *) "$prog" "$@" "$input" ;;
-+  0) "$prog" $flags "$input" ;;
-+  *) "$prog" $flags "$@" "$input" ;;
- esac
- ret=$?
-+if [ -n "$out" ]; then
-+      eval $out
-+fi
- if test $ret -eq 0; then
-   for from in *
-EOF
-
 # save timestamp
 echo "AMU: save timestamp..."
 echo timestamp > stamp-h.in