DRY
[git-tools-moved-to-github.git] / update-archive / update-archive.sh
index 80a89c9..1cec276 100755 (executable)
@@ -15,7 +15,13 @@ confdir=`pwd`
 
 architectures="i386 amd64"
 
-for vdist in ubuntu/gutsy ubuntu/hardy ubuntu/intrepid ubuntu/jaunty ubuntu/karmic ubuntu/lucid debian/squeeze debian/lenny debian/etch; do
+if [ "$1" == "" ]; then 
+       DISTRIBUTIONS="ubuntu/lucid ubuntu/natty ubuntu/oneiric ubuntu/precise ubuntu/quantal debian/wheezy debian/squeeze debian/lenny"
+else
+       DISTRIBUTIONS=$1
+fi
+
+for vdist in $DISTRIBUTIONS ; do
        dist=`basename $vdist`
        vendor=`dirname $vdist`
        ftpdir=/home/ftp/pub/$vendor