summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-06 23:39:44 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-06 23:39:44 -0700
commit626180ff1711e1e0eb3be2be64e0d7d2579ffc55 (patch)
tree55d1cb86f35b5621b89b966b5e6af960609ab142
parente3ccb4d3b128d300699fde001e4b36fa208d7f16 (diff)
downloadnasmbuild-626180ff1711e1e0eb3be2be64e0d7d2579ffc55.tar.gz
nasmbuild-626180ff1711e1e0eb3be2be64e0d7d2579ffc55.tar.xz
nasmbuild-626180ff1711e1e0eb3be2be64e0d7d2579ffc55.zip
Avoid symlinks for non-Unix operating systems
-rwxr-xr-xbuildall.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/buildall.sh b/buildall.sh
index 94eb8ab..1b0c99d 100755
--- a/buildall.sh
+++ b/buildall.sh
@@ -65,7 +65,7 @@ build () {
cp -a nasm-$version win32
cd win32/nasm-$version
LDFLAGS='-s' ./configure --host=i686-w64-mingw32
- $makej
+ $makej LN_S='ln'
cd ..
zip -9Dl ../nasm-$version-win32.zip nasm-$version/LICENSE
zip -9Drg ../nasm-$version-win32.zip nasm-$version -i \*.exe
@@ -84,7 +84,7 @@ build () {
cp -a nasm-$version win64
cd win64/nasm-$version
LDFLAGS='-s' ./configure --host=x86_64-w64-mingw32
- $makej
+ $makej LN_S='ln'
cd ..
zip -9Dl ../nasm-$version-win64.zip nasm-$version/LICENSE
zip -9Drg ../nasm-$version-win64.zip nasm-$version -i \*.exe
@@ -103,7 +103,7 @@ build () {
cp -a nasm-$version dos
cd dos/nasm-$version
LDFLAGS='-s' ./configure --host=i586-pc-msdosdjgpp
- $makej
+ $makej LN_S='ln'
mv doc/nasmdoc.txt .
cp $READMES/dos README
cp $CWSDPMI/bin/cwsdpmi.{exe,doc} .
@@ -112,6 +112,7 @@ build () {
zip -9Drg ../nasm-$version-dos.zip nasm-$version -i \*.exe
find nasm-$version -name \*.exe -a -not -name cwsdpmi.exe -type f -print0 | \
xargs -0r time upx -q --lzma --best --all-filters
+ /usr/sbin/hardlink nasm-$version
zip -9Dl ../nasm-$version-dos-upx.zip nasm-$version/{LICENSE,README,nasmdoc.txt,cwsdpmi.doc}
zip -9Drg ../nasm-$version-dos-upx.zip nasm-$version -i \*.exe
cd ..