From 084978b6b41ce445e8da0102906378efe08e3b53 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 1 Mar 2007 03:32:46 +0000 Subject: r21618: an attempt to fix the problem with lcov and yacc generated C code (This used to be commit e9d17b5ba0846fbe47b5e4001f5f6394884961d1) --- source4/script/yacc_compile.sh | 4 ++-- 1 file 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 -- cgit