Preprare for xz support.

This commit is contained in:
Michal Čihař
2010-12-02 16:40:35 +01:00
parent 8017a61253
commit 267c8fe735

View File

@@ -163,13 +163,17 @@ for kit in $KITS ; do
# Prepare distributions # Prepare distributions
for comp in $COMPRESSIONS ; do for comp in $COMPRESSIONS ; do
case $comp in case $comp in
tbz|tgz) tbz|tgz|txz)
echo "* Creating $name.tar" echo "* Creating $name.tar"
tar cf $name.tar $name tar cf $name.tar $name
if [ $comp = tbz ] ; then if [ $comp = tbz ] ; then
echo "* Creating $name.tar.bz2" echo "* Creating $name.tar.bz2"
bzip2 -9k $name.tar bzip2 -9k $name.tar
fi fi
if [ $comp = txz ] ; then
echo "* Creating $name.tar.xz"
xz -9k $name.tar
fi
if [ $comp = tgz ] ; then if [ $comp = tgz ] ; then
echo "* Creating $name.tar.gz" echo "* Creating $name.tar.gz"
gzip -9c $name.tar > $name.tar.gz gzip -9c $name.tar > $name.tar.gz