mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
tools/release: handle new binary files
With the travis tests, we have a lot more binary files to worry about. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
11599f49da
commit
b3f7c8eb2b
@ -66,10 +66,15 @@ mv nasm-"$version".tar.gz nasm-"$version".tar.bz2 nasm-"$version".tar.xz ..
|
||||
|
||||
# Create zipfile (DOS convention: no prefix, convert file endings)
|
||||
cd nasm-"$version"
|
||||
binext='jpg zip ico png pdf bin o obj exe com'
|
||||
for e in $binext; do
|
||||
xbin="$xbin -x *.$e -x *.$e.t"
|
||||
ibin="$ibin -i *.$e -i *.$e.t"
|
||||
done
|
||||
# Text files
|
||||
zip -9Dlr ../../nasm-"$version".zip * -x \*.jpg -x \*.zip -x \*.ico -x \*.png
|
||||
zip -9Dlr ../../nasm-"$version".zip * $xbin
|
||||
# Binary files
|
||||
zip -9Dgr ../../nasm-"$version".zip * -i \*.jpg -i \*.zip -i \*.ico -i \*.png
|
||||
zip -9Dgr ../../nasm-"$version".zip * $ibin
|
||||
cd ..
|
||||
|
||||
# Record what we have already generated
|
||||
@ -97,8 +102,8 @@ mv nasm-"$version"-xdoc.tar.gz nasm-"$version"-xdoc.tar.bz2 nasm-"$version"-xdoc
|
||||
|
||||
# Create doc zipfile (DOS convention: no prefix, convert file endings)
|
||||
cd nasm-"$version"
|
||||
zip -9Dlr ../../nasm-"$version"-xdoc.zip doc -x \*.pdf -x \*.png
|
||||
zip -9Dgr ../../nasm-"$version"-xdoc.zip doc -i \*.pdf -i \*.png
|
||||
zip -9Dlr ../../nasm-"$version"-xdoc.zip doc $xbin
|
||||
zip -9Dgr ../../nasm-"$version"-xdoc.zip doc $ibin
|
||||
|
||||
# Clean up
|
||||
cd ../..
|
||||
|
Loading…
Reference in New Issue
Block a user