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

metze at samba.org metze at samba.org
Fri Aug 12 09:20:32 GMT 2005


Author: metze
Date: 2005-08-12 09:20:32 +0000 (Fri, 12 Aug 2005)
New Revision: 9258

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

Log:
return is only supported in function, not in plain shell scripts

metze

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


Changeset:
Modified: branches/SAMBA_4_0/source/script/lex_compile.sh
===================================================================
--- branches/SAMBA_4_0/source/script/lex_compile.sh	2005-08-12 09:05:09 UTC (rev 9257)
+++ branches/SAMBA_4_0/source/script/lex_compile.sh	2005-08-12 09:20:32 UTC (rev 9258)
@@ -9,16 +9,16 @@
 base=`basename $SRC .l`
 if [ -z "$LEX" ]; then
 	echo "lex not found - not regenerating $DEST"
-	return;
+	exit;
 fi
 if [ -r $DEST ]; then
-    if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
-	    return;
-    fi
+	if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
+		exit;
+	fi
 fi
 TOP=`pwd`
 if cd $dir && $LEX $file; then
-    sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c > $base.c
-    rm -f $base.yy.c
+	sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c > $base.c
+	rm -f $base.yy.c
 fi
 cd $TOP

Modified: branches/SAMBA_4_0/source/script/yacc_compile.sh
===================================================================
--- branches/SAMBA_4_0/source/script/yacc_compile.sh	2005-08-12 09:05:09 UTC (rev 9257)
+++ branches/SAMBA_4_0/source/script/yacc_compile.sh	2005-08-12 09:20:32 UTC (rev 9258)
@@ -9,12 +9,12 @@
 base=`basename $SRC .y`
 if [ -z "$YACC" ]; then
 	echo "yacc not found"
-	return;
+	exit;
 fi
 if [ -r $DEST ]; then
 	if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
-	    return;
-    fi
+		exit;
+	fi
 fi
 TOP=`pwd`
 if cd $dir && $YACC -d $file; then



More information about the samba-cvs mailing list