DEVTOOLS: Package release tarballs with xz also

This commit is contained in:
Eugene Sandulenko 2015-11-15 13:22:53 +01:00
parent 546ba3c09b
commit d2ef695e4a

View File

@ -122,6 +122,13 @@ if [ ! -f $fullname.tar.bz2 ]; then
exit 1
fi
echo "Compressing (using xz) tarball $fullname.tar.xz..."
xz -c9 $fullname.tar > $fullname.tar.xz
if [ ! -f $fullname.tar.xz ]; then
echo "Packaging to xz failed, $fullname.tar.xz doesn't exist!"
# But do not exit
fi
echo "Zipping $fullname.zip..."
zip -r9 $fullname.zip $fullname >/dev/null
if [ ! -f $fullname.zip ]; then
@ -133,7 +140,7 @@ fi
### finish up
echo "Done:"
ls -l $fullname.tar.gz $fullname.tar.bz2 $fullname.zip
md5sum $fullname.tar.gz $fullname.tar.bz2 $fullname.zip
ls -l $fullname.tar.gz $fullname.tar.bz2 $fullname.tar.xz $fullname.zip
md5sum $fullname.tar.gz $fullname.tar.bz2 $fullname.tar.xz $fullname.zip
exit 0