From b3f7c8eb2b2409465384670f73a4cad822558087 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 26 Dec 2018 05:11:26 -0800 Subject: 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 --- tools/release | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tools') 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 ../.. -- cgit v1.2.1