30-openmamba-autobuild-cleanold: support for tar.gz, tar.bz2 and tar.xz extensions

This commit is contained in:
Silvan Calarco 2012-03-12 15:41:49 +01:00
parent ae23139f6b
commit d88b12c6e3

View File

@ -9,7 +9,7 @@ DESTBASEDIR=/var/ftp/pub/openmamba/devel/media
DESTBASEURL=/pub/openmamba/devel/media DESTBASEURL=/pub/openmamba/devel/media
[ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d` [ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d`
GLOBDOWNLOADSFILE=$DESTBASEDIR/downloads.inc GLOBDOWNLOADSFILE=$DESTBASEDIR/downloads.inc
ARCH=i586 LANGS="it en es"
tmpfile=`mktemp` tmpfile=`mktemp`
@ -17,11 +17,10 @@ tmpfile=`mktemp`
echo "Error: cannot create temporary files; aborting." echo "Error: cannot create temporary files; aborting."
exit 1 exit 1
} }
for l in $LANGS; do for l in $LANGS; do
for d in `find $DESTBASEDIR/*/$l -maxdepth 0 -type d`; do for d in `find $DESTBASEDIR/*/$l -maxdepth 0 -type d`; do
> $tmpfile > $tmpfile
for f in `find $d -maxdepth 1 -name \*.iso -o -name \*.cpio.gz`; do for f in `find $d -maxdepth 1 -name \*.iso -o -name \*.cpio.gz -o -name \*.tar.gz -o -name \*.tar.xz -o -name \*.tar.bz2`; do
echo `stat -c %Z $f` `basename $f` >> $tmpfile echo `stat -c %Z $f` `basename $f` >> $tmpfile
done done