mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
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>
This commit is contained in:
parent
38e57c5084
commit
74d23af7b8
@ -50,14 +50,16 @@ cd ..
|
|||||||
# Clean up any previous attempt
|
# Clean up any previous attempt
|
||||||
rm -f ../nasm-"$version".tar.gz ../nasm-"$version"-xdoc.tar.gz
|
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.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
|
rm -f ../nasm-"$version".zip ../nasm-"$version"-xdoc.zip
|
||||||
|
|
||||||
# Create tarfile (Unix convention: file includes prefix)
|
# Create tarfile (Unix convention: file includes prefix)
|
||||||
mv nasm nasm-"$version"
|
mv nasm nasm-"$version"
|
||||||
tar cvvf nasm-"$version".tar nasm-"$version"
|
tar cvvf nasm-"$version".tar nasm-"$version"
|
||||||
|
xz -9k nasm-"$version".tar
|
||||||
bzip2 -9k nasm-"$version".tar
|
bzip2 -9k nasm-"$version".tar
|
||||||
gzip -9 nasm-"$version".tar
|
gzip -9 nasm-"$version".tar
|
||||||
mv nasm-"$version".tar.gz nasm-"$version".tar.bz2 ..
|
mv nasm-"$version".tar.gz nasm-"$version".tar.bz2 nasm-"$version".tar.xz ..
|
||||||
|
|
||||||
# Create zipfile (DOS convention: no prefix, convert file endings)
|
# Create zipfile (DOS convention: no prefix, convert file endings)
|
||||||
cd nasm-"$version"
|
cd nasm-"$version"
|
||||||
@ -78,12 +80,15 @@ cd ..
|
|||||||
|
|
||||||
# Remove non-documentation
|
# Remove non-documentation
|
||||||
cat main | xargs rm -f
|
cat main | xargs rm -f
|
||||||
|
# Delete empty subdirectories
|
||||||
|
find nasm-"$version"/doc -type d -exec rmdir '{}' \; 2>/dev/null || true
|
||||||
|
|
||||||
# Create doc tarfile
|
# Create doc tarfile
|
||||||
tar cvvf nasm-"$version"-xdoc.tar nasm-"$version"/doc
|
tar cvvf nasm-"$version"-xdoc.tar nasm-"$version"/doc
|
||||||
|
xz -9k nasm-"$version"-xdoc.tar
|
||||||
bzip2 -9k nasm-"$version"-xdoc.tar
|
bzip2 -9k nasm-"$version"-xdoc.tar
|
||||||
gzip -9 nasm-"$version"-xdoc.tar
|
gzip -9 nasm-"$version"-xdoc.tar
|
||||||
mv nasm-"$version"-xdoc.tar.gz nasm-"$version"-xdoc.tar.bz2 ..
|
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)
|
# Create doc zipfile (DOS convention: no prefix, convert file endings)
|
||||||
# (Note: generating Win .hlp files requires additional tools)
|
# (Note: generating Win .hlp files requires additional tools)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user