svn commit: samba r8374 - in branches/SAMBA_4_0/source/heimdal_build: .

tridge at samba.org tridge at samba.org
Tue Jul 12 12:12:03 GMT 2005


Author: tridge
Date: 2005-07-12 12:12:03 +0000 (Tue, 12 Jul 2005)
New Revision: 8374

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

Log:
avoid running flex and bison unless needed

this should stop the files changes in svn for other developers

Modified:
   branches/SAMBA_4_0/source/heimdal_build/build_external.sh


Changeset:
Modified: branches/SAMBA_4_0/source/heimdal_build/build_external.sh
===================================================================
--- branches/SAMBA_4_0/source/heimdal_build/build_external.sh	2005-07-12 12:04:54 UTC (rev 8373)
+++ branches/SAMBA_4_0/source/heimdal_build/build_external.sh	2005-07-12 12:12:03 UTC (rev 8374)
@@ -41,10 +41,15 @@
     dir=`dirname $f`
     file=`basename $f`
     base=`basename $f .l`
+    if [ -r $dir/$base.c ]; then
+	if [ x`find $f -newer $dir/$base.c -print` != x$f ]; then
+	    return;
+	fi
+    fi
     echo Building $f
     if cd $dir && $FLEX $file; then
-	sed '/^#/ s|$base.yy\.c|$base.c|' $base.yy.c > $base.c
-	rm -f $base.yy.c
+       sed '/^#/ s|$base.yy\.c|$base.c|' $base.yy.c > $base.c
+       rm -f $base.yy.c
     fi
     cd $TOP || exit 1
 }
@@ -54,6 +59,11 @@
     dir=`dirname $f`
     file=`basename $f`
     base=`basename $f .y`
+    if [ -r $dir/$base.c ]; then
+	if [ x`find $f -newer $dir/$base.c -print` != x$f ]; then
+	    return;
+	fi
+    fi
     echo Building $f
     if cd $dir && $BISON -y -d $file; then
 	sed -e "/^#/!b" -e "s|y\.tab\.h|$base.h|" y.tab.h > $base.h



More information about the samba-cvs mailing list