BSD machines don't seem to have head(1).
authorMartin Pool <mbp@samba.org>
Thu, 6 Sep 2001 06:06:13 +0000 (06:06 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 6 Sep 2001 06:06:13 +0000 (06:06 +0000)
runtests.sh
testsuite/rsync.fns

index c55f9cc..9e4ee16 100755 (executable)
@@ -95,6 +95,8 @@
 # You cannot use "function foo {" syntax, but must instead say "foo()
 # {", or it breaks on FreeBSD.
 
+# BSD machines tend not to have "head" or "seq".
+
 
 
 # STILL TO DO:
index bb3a6e8..a583c15 100644 (file)
@@ -67,8 +67,8 @@ hands_setup() {
     touch ${FROM}/empty
     mkdir ${FROM}/emptydir
 
-    # a few hundred lines of test
-    ls -lR / | head -200 > ${FROM}/filelist
+    # a hundred lines of text or so
+    ls -lR $(srcdir) >${FROM}/filelist
 
     # This might fail on systems that don't have -n
     echo $ECHO_N "This file has no trailing lf$ECHO_C" > ${FROM}/nolf
@@ -76,7 +76,7 @@ hands_setup() {
     ln -s nolf ${FROM}/nolf-symlink
     umask 077
 
-    cat $srcdir/*.c | head -2000 > ${FROM}/${F1}
+    cat $srcdir/*.c > ${FROM}/${F1}
     mkdir ${FROM}/dir
     cp ${FROM}/${F1} ${FROM}/dir
     mkdir ${FROM}/dir/subdir