summaryrefslogtreecommitdiff
path: root/source4/build/make/yacc_compile.sh
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-08-01 11:16:14 +0200
committerStefan Metzmacher <metze@samba.org>2008-08-01 16:10:59 +0200
commitcf875a562173d5ae99080cea594e79c6a5555307 (patch)
treeeaa105751bafb07878f79f9ebf1e21b67b6aaa44 /source4/build/make/yacc_compile.sh
parentd087545deb354f58431010253dc5170cef3e2bf3 (diff)
downloadsamba-cf875a562173d5ae99080cea594e79c6a5555307.tar.gz
samba-cf875a562173d5ae99080cea594e79c6a5555307.tar.bz2
samba-cf875a562173d5ae99080cea594e79c6a5555307.zip
build: allow flex-2.34 together with bison-2.3
metze (This used to be commit 8bd30a7b4392642ef5184f959d801716d2db20b2)
Diffstat (limited to 'source4/build/make/yacc_compile.sh')
-rwxr-xr-xsource4/build/make/yacc_compile.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/make/yacc_compile.sh b/source4/build/make/yacc_compile.sh
index a56a51da0a..ac4afea3f6 100755
--- a/source4/build/make/yacc_compile.sh
+++ b/source4/build/make/yacc_compile.sh
@@ -29,10 +29,12 @@ if [ -r $DEST ]; then
fi
fi
TOP=`pwd`
+echo "info: running $YACC -d $file"
if cd $dir && $YACC -d $file; then
if [ -r y.tab.h -a -r y.tab.c ];then
- #echo "info: move files"
+ echo "info: move y.tab.h to $base.h"
sed -e "/^#/!b" -e "s|y\.tab\.h|$SRC|" -e "s|\"$base.y|\"$SRC|" y.tab.h > $base.h
+ echo "info: move y.tab.c to $base.c"
sed -e "s|y\.tab\.c|$SRC|" -e "s|\"$base.y|\"$SRC|" y.tab.c > $base.c
rm -f y.tab.c y.tab.h
elif [ ! -r $base.h -a ! -r $base.c]; then