diff options
author | Karl Berry <karl@freefriends.org> | 2011-01-19 00:52:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-01-19 00:52:29 +0000 |
commit | ccf628872d15260612c8c5450121e14be3969be4 (patch) | |
tree | 0ca95fd223e5713d19bb2cb0721930e4708cce1b /Build | |
parent | bf1c1f8fa7f8e76dfb5f8b3f7a3454316b0cf3cb (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')
-rwxr-xr-x | Build/source/Build | 22 | ||||
-rw-r--r-- | Build/source/ChangeLog | 4 |
2 files changed, 17 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 diff --git a/Build/source/ChangeLog b/Build/source/ChangeLog index 48e63b2fd46..b4e606abd6b 100644 --- a/Build/source/ChangeLog +++ b/Build/source/ChangeLog @@ -1,3 +1,7 @@ +2011-01-19 Karl Berry <karl@tug.org> + + * Build (bindir): don't try to count binaries if no bindir. + 2010-10-24 Peter Breitenlohner <peb@mppmu.mpg.de> * tardate.ac (new): Define the current TeX Live tarball version. |