From 571a4b265410cdc6b8301580f2b04ee29cff214a Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 6 Sep 2001 06:06:13 +0000 Subject: [PATCH] BSD machines don't seem to have head(1). --- runtests.sh | 2 ++ testsuite/rsync.fns | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/runtests.sh b/runtests.sh index c55f9cc1..9e4ee16d 100755 --- a/runtests.sh +++ b/runtests.sh @@ -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: diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index bb3a6e89..a583c159 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -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 -- 2.34.1