svn commit: samba r21618 - in branches/SAMBA_4_0/source/script: .

tridge at samba.org tridge at samba.org
Thu Mar 1 03:32:48 GMT 2007


Author: tridge
Date: 2007-03-01 03:32:46 +0000 (Thu, 01 Mar 2007)
New Revision: 21618

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21618

Log:

an attempt to fix the problem with lcov and yacc generated C code

Modified:
   branches/SAMBA_4_0/source/script/yacc_compile.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/yacc_compile.sh
===================================================================
--- branches/SAMBA_4_0/source/script/yacc_compile.sh	2007-03-01 03:29:40 UTC (rev 21617)
+++ branches/SAMBA_4_0/source/script/yacc_compile.sh	2007-03-01 03:32:46 UTC (rev 21618)
@@ -20,8 +20,8 @@
 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



More information about the samba-cvs mailing list