summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-03-01 03:32:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:03 -0500
commit084978b6b41ce445e8da0102906378efe08e3b53 (patch)
tree80c64c01068f3b5a8c8fc1775d4950ba828b326f
parent9c9ec64518a4e8b0afc879c795f86d92c079f134 (diff)
downloadsamba-084978b6b41ce445e8da0102906378efe08e3b53.tar.gz
samba-084978b6b41ce445e8da0102906378efe08e3b53.tar.bz2
samba-084978b6b41ce445e8da0102906378efe08e3b53.zip
r21618: an attempt to fix the problem with lcov and yacc generated C code
(This used to be commit e9d17b5ba0846fbe47b5e4001f5f6394884961d1)
-rwxr-xr-xsource4/script/yacc_compile.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/script/yacc_compile.sh b/source4/script/yacc_compile.sh
index 77b5efb06f..87d9807fc6 100755
--- a/source4/script/yacc_compile.sh
+++ b/source4/script/yacc_compile.sh
@@ -20,8 +20,8 @@ TOP=`pwd`
if cd $dir && $YACC -d $file; then
if [ -r y.tab.h -a -r y.tab.c ];then
echo "move files"
- sed -e "/^#/!b" -e "s|y\.tab\.h|$base.h|" y.tab.h > $base.h
- sed '/^#/ s|y\.tab\.c|$base.c|' y.tab.c > $base.c
+ sed -e "/^#/!b" -e "/^#/ s|y\.tab\.h|$SRC|" -e "/^#/ s|\"$base.y|\"$SRC|" y.tab.h > $base.h
+ 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
fi
fi