diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-12-26 05:11:26 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2018-12-26 05:11:26 -0800 |
commit | b3f7c8eb2b2409465384670f73a4cad822558087 (patch) | |
tree | 4ccd71bf364d8e3f3bcb03b8ca2c13c51753ca56 | |
parent | 11599f49da963a0cf71970ad69fe66de981d35ee (diff) | |
download | nasm-b3f7c8eb2b2409465384670f73a4cad822558087.tar.gz |
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>
-rwxr-xr-x | tools/release | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/release b/tools/release index dd68ec7c..a0b79461 100755 --- a/tools/release +++ b/tools/release @@ -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 ../.. |