summaryrefslogtreecommitdiff
path: root/Build/source/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-19 00:52:29 +0000
committerKarl Berry <karl@freefriends.org>2011-01-19 00:52:29 +0000
commitccf628872d15260612c8c5450121e14be3969be4 (patch)
tree0ca95fd223e5713d19bb2cb0721930e4708cce1b /Build/source/Build
parentbf1c1f8fa7f8e76dfb5f8b3f7a3454316b0cf3cb (diff)
do not try to count binaries if no bindir
git-svn-id: svn://tug.org/texlive/trunk@21121 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/Build')
-rwxr-xr-xBuild/source/Build22
1 files changed, 13 insertions, 9 deletions
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