Fix sh syntax for FreeBSD.
authorMartin Pool <mbp@samba.org>
Fri, 31 Aug 2001 09:26:34 +0000 (09:26 +0000)
committerMartin Pool <mbp@samba.org>
Fri, 31 Aug 2001 09:26:34 +0000 (09:26 +0000)
runtests.sh
testsuite/rsync.fns

index 5c672dd..77a2fa9 100755 (executable)
@@ -92,6 +92,9 @@
 # they're in POSIX 1003.2, and since the build farm relies on them
 # they're probably working on most machines we really care about.
 
 # they're in POSIX 1003.2, and since the build farm relies on them
 # they're probably working on most machines we really care about.
 
+# You cannot use "function foo {" syntax, but must instead say "foo()
+# {", or it breaks on FreeBSD.
+
 
 set -e
 
 
 set -e
 
index f5869a4..a80a96c 100644 (file)
@@ -101,7 +101,7 @@ checkforlogs() {
 }
 
 
 }
 
 
-function build_rsyncd_conf {
+build_rsyncd_conf() {
     # Build an appropriate configuration file
     conf="$scratchdir/test-rsyncd.conf"
     echo "building configuration $conf"
     # Build an appropriate configuration file
     conf="$scratchdir/test-rsyncd.conf"
     echo "building configuration $conf"