summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-08-12 09:20:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:38 -0500
commit597e4234d0ef8e1a7335a6e2b35cb8cced0d7207 (patch)
tree5d2c91c019630f4279c81dbcddb9c24eb865d015 /source4/script
parent0648a67824073e43284d98b08cd2b6048dda25ab (diff)
downloadsamba-597e4234d0ef8e1a7335a6e2b35cb8cced0d7207.tar.gz
samba-597e4234d0ef8e1a7335a6e2b35cb8cced0d7207.tar.bz2
samba-597e4234d0ef8e1a7335a6e2b35cb8cced0d7207.zip
r9258: return is only supported in function, not in plain shell scripts
metze (This used to be commit 3b99c3685734e398ab007e93dd7f468027c1847f)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/lex_compile.sh12
-rwxr-xr-xsource4/script/yacc_compile.sh6
2 files changed, 9 insertions, 9 deletions
diff --git a/source4/script/lex_compile.sh b/source4/script/lex_compile.sh
index 7af9ea1281..09f8253af7 100755
--- a/source4/script/lex_compile.sh
+++ b/source4/script/lex_compile.sh
@@ -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
diff --git a/source4/script/yacc_compile.sh b/source4/script/yacc_compile.sh
index 46a6fb6455..4c87b7c4b7 100755
--- a/source4/script/yacc_compile.sh
+++ b/source4/script/yacc_compile.sh
@@ -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