diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-25 21:28:15 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-25 21:30:33 -0800 |
commit | 74d23af7b8b50b45e95cdbcb0a3a89cfe82aaf66 (patch) | |
tree | 26c2f46907743f07c4da249bf19f28423a98a790 /misc | |
parent | 38e57c50841433815dce579d33c6a7404e7c5d2c (diff) | |
download | nasm-74d23af7b8b50b45e95cdbcb0a3a89cfe82aaf66.tar.gz nasm-74d23af7b8b50b45e95cdbcb0a3a89cfe82aaf66.tar.bz2 nasm-74d23af7b8b50b45e95cdbcb0a3a89cfe82aaf66.zip |
release: create .xz files; remove empty subdirectories
Create .xz files as well as .gz and .bz2; remove empty subdirectories
from the xdoc archives.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/release | 13 |
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) |