1 ARCHS_oldstable="alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc"
2 ARCHS_stable="alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc s390 sparc"
3 ARCHS_testing="alpha amd64 armel hppa i386 ia64 mips mipsel powerpc s390 sparc"
4 ARCHS_unstable="$ARCHS_testing kfreebsd-amd64 kfreebsd-i386"
5 CURLOPT="-q -s -S -R -f -Y 10 -y 120 -K /srv/wanna-build/trigger.curlrc"
8 local url tmpname destname appendname curlopt
15 if [ -e "$destname" ]; then
16 refdate=`perl -e "print scalar gmtime(((stat ('$destname'))[9]))"`
17 curl $CURLOPT -z "$refdate" "$url" -o "$tmpname"
20 curl $CURLOPT "$url" -o "$tmpname"
23 if [ $rc -eq 0 -a -e "$tmpname" ]; then
24 if gzip -t "$tmpname"; then
25 mv "$tmpname" "$destname"
30 gzip -dc "$destname" >> "$appendname"