summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-26 04:53:03 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-26 04:53:03 -0800
commit7154dc38742e1dca1e8b2005d84aab06a16975b8 (patch)
treec5a81763fed016b3373e8a7e92a5df8a7cb47473
parentf6a10743cac102fa44a8a8fa8a7fad3f3656110c (diff)
downloadnasmbuild-7154dc38742e1dca1e8b2005d84aab06a16975b8.tar.gz
nasmbuild-7154dc38742e1dca1e8b2005d84aab06a16975b8.tar.xz
nasmbuild-7154dc38742e1dca1e8b2005d84aab06a16975b8.zip
buildall.sh: don't try to move files which don't exist
Build failure since Oct 2018 due to missing README Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-xbuildall.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildall.sh b/buildall.sh
index acfd940..c47294a 100755
--- a/buildall.sh
+++ b/buildall.sh
@@ -150,8 +150,10 @@ build () {
CC='darwinx-gcc -arch i386 -arch x86_64 -arch ppc' \
./configure --host=i686-apple-darwin10
$makej
- mv LICENSE README doc/nasmdoc.pdf ../nasm-$version/
- ir=`pwd`/../nasm-$version
+ for f in LICENSE README doc/nasmdoc.pdf; do
+ if [ -f "$f" ]; then mv "$f" ../nasm-$version/; fi
+ done
+ ir=$(realpath ../nasm-$version)
make install INSTALLROOT="$ir" DESTDIR="$ir" bindir= mandir=
make install_rdf INSTALLROOT="$ir" DESTDIR="$ir" bindir= mandir=
cd ..