Allow {UBUNTU,DEBIAN}_DIST to be set
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Dec 2009 11:24:44 +0000 (12:24 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Dec 2009 11:24:44 +0000 (12:24 +0100)
id-deb-build/id-pbuild-all.sh

index b4c15a0..278302f 100755 (executable)
@@ -18,8 +18,12 @@ if test ! -e "$PKG"; then
        exit 1
 fi
 PRODUCT=`echo *.dsc|sed 's/_.*//g'`
-DEBIAN_DIST="squeeze etch lenny"
-UBUNTU_DIST="karmic jaunty intrepid hardy"
+if test -z "$DEBIAN_DIST"; then
+       DEBIAN_DIST="squeeze etch lenny"
+fi
+if test -z "$UBUNTU_DIST"; then
+       UBUNTU_DIST="karmic jaunty intrepid hardy"
+fi
 
 if test "$2" = "upload"; then
        for dist in ${UBUNTU_DIST}; do