r9258: return is only supported in function, not in plain shell scripts
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Aug 2005 09:20:32 +0000 (09:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:31:38 +0000 (13:31 -0500)
metze
(This used to be commit 3b99c3685734e398ab007e93dd7f468027c1847f)

source4/script/lex_compile.sh
source4/script/yacc_compile.sh

index 7af9ea1281d717f79090e020251bc2016b71e69e..09f8253af724621d08536ba377b58d1725ad11a5 100755 (executable)
@@ -9,16 +9,16 @@ file=`basename $SRC`
 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
index 46a6fb64555573dc1dd5c97ba6e5dc58356897a6..4c87b7c4b756696eb89339f050767782ab1a53f1 100755 (executable)
@@ -9,12 +9,12 @@ file=`basename $SRC`
 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