summaryrefslogtreecommitdiff
path: root/misc/release
diff options
context:
space:
mode:
Diffstat (limited to 'misc/release')
-rwxr-xr-xmisc/release13
1 files changed, 9 insertions, 4 deletions
diff --git a/misc/release b/misc/release
index 9b8cffa..e530ac6 100755
--- a/misc/release
+++ b/misc/release
@@ -50,14 +50,16 @@ cd ..
# Clean up any previous attempt
rm -f ../nasm-"$version".tar.gz ../nasm-"$version"-xdoc.tar.gz
rm -f ../nasm-"$version".tar.bz2 ../nasm-"$version"-xdoc.tar.bz2
+rm -f ../nasm-"$version".tar.xz ../nasm-"$version"-xdoc.tar.xz
rm -f ../nasm-"$version".zip ../nasm-"$version"-xdoc.zip
# Create tarfile (Unix convention: file includes prefix)
mv nasm nasm-"$version"
tar cvvf nasm-"$version".tar nasm-"$version"
+xz -9k nasm-"$version".tar
bzip2 -9k nasm-"$version".tar
-gzip -9 nasm-"$version".tar
-mv nasm-"$version".tar.gz nasm-"$version".tar.bz2 ..
+gzip -9 nasm-"$version".tar
+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"
@@ -78,12 +80,15 @@ cd ..
# Remove non-documentation
cat main | xargs rm -f
+# Delete empty subdirectories
+find nasm-"$version"/doc -type d -exec rmdir '{}' \; 2>/dev/null || true
# Create doc tarfile
tar cvvf nasm-"$version"-xdoc.tar nasm-"$version"/doc
+xz -9k nasm-"$version"-xdoc.tar
bzip2 -9k nasm-"$version"-xdoc.tar
-gzip -9 nasm-"$version"-xdoc.tar
-mv nasm-"$version"-xdoc.tar.gz nasm-"$version"-xdoc.tar.bz2 ..
+gzip -9 nasm-"$version"-xdoc.tar
+mv nasm-"$version"-xdoc.tar.gz nasm-"$version"-xdoc.tar.bz2 nasm-"$version"-xdoc.tar.xz ..
# Create doc zipfile (DOS convention: no prefix, convert file endings)
# (Note: generating Win .hlp files requires additional tools)