summaryrefslogtreecommitdiff
path: root/source4/script/yacc_compile.sh
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/yacc_compile.sh
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/yacc_compile.sh')
-rwxr-xr-xsource4/script/yacc_compile.sh6
1 files changed, 3 insertions, 3 deletions
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