From ccf628872d15260612c8c5450121e14be3969be4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 19 Jan 2011 00:52:29 +0000 Subject: do not try to count binaries if no bindir git-svn-id: svn://tug.org/texlive/trunk@21121 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/Build | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'Build/source/Build') diff --git a/Build/source/Build b/Build/source/Build index ee29204a69a..a3c6641df73 100755 --- a/Build/source/Build +++ b/Build/source/Build @@ -120,16 +120,20 @@ cd $TL_WORKDIR || exit 1 } 2>&1 | tee build.log -# report the number of binaries built. +# if we have a bindir, report the number of binaries built. bindir=$TL_INSTALL_DEST/bin -count=`find $bindir \! -type d -print | wc -l` -if test "$count" -gt 0; then - echo - echo "$0: $count executables in $bindir." -else - echo "$0: Build failed, no executables under $bindir." - exit 1 -fi | tee -a build.log +if test -d "$bindir"; then + count=`find "$bindir" \! -type d -print | wc -l` + if test "$count" -gt 0; then + echo + echo "$0: $count executables in $bindir." + else + echo "$0: Build failed, no executables under $bindir." + exit 1 + fi | tee -a build.log +# if no bindir, perhaps they specified --prefix; don't worry. +# Any errors will have been duly reported anyway. +fi echo done `date` | tee -a build.log -- cgit v1.2.3