Avoid creating tarball multiple times.
This commit is contained in:
@@ -169,12 +169,17 @@ for kit in $KITS ; do
|
|||||||
rm -f scripts/lang-cleanup.sh
|
rm -f scripts/lang-cleanup.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
# Remove tar file possibly left from previous run
|
||||||
|
rm -f $name.tar
|
||||||
|
|
||||||
# Prepare distributions
|
# Prepare distributions
|
||||||
for comp in $COMPRESSIONS ; do
|
for comp in $COMPRESSIONS ; do
|
||||||
case $comp in
|
case $comp in
|
||||||
tbz|tgz|txz)
|
tbz|tgz|txz)
|
||||||
echo "* Creating $name.tar"
|
if [ ! -f $name.tar ] ; then
|
||||||
tar cf $name.tar $name
|
echo "* Creating $name.tar"
|
||||||
|
tar cf $name.tar $name
|
||||||
|
fi
|
||||||
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
|
||||||
@@ -187,7 +192,6 @@ for kit in $KITS ; do
|
|||||||
echo "* Creating $name.tar.gz"
|
echo "* Creating $name.tar.gz"
|
||||||
gzip -9c $name.tar > $name.tar.gz
|
gzip -9c $name.tar > $name.tar.gz
|
||||||
fi
|
fi
|
||||||
rm $name.tar
|
|
||||||
;;
|
;;
|
||||||
zip)
|
zip)
|
||||||
echo "* Creating $name.zip"
|
echo "* Creating $name.zip"
|
||||||
@@ -205,6 +209,9 @@ for kit in $KITS ; do
|
|||||||
echo "WARNING: ignoring compression '$comp', not known!"
|
echo "WARNING: ignoring compression '$comp', not known!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rm -f $name.tar
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove directory with current dist set
|
# Remove directory with current dist set
|
||||||
|
Reference in New Issue
Block a user