id-pbuild-all.sh uses dsc in deb-src + karmic
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 5 Nov 2009 20:27:14 +0000 (21:27 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 5 Nov 2009 20:27:14 +0000 (21:27 +0100)
id-deb-build/id-pbuild-all.sh

index 796eddd..b4c15a0 100755 (executable)
@@ -2,6 +2,14 @@
 update=true
 PKG="$1"
 if test -z "$PKG"; then
+       if test -d deb-src; then
+               cd deb-src      
+               for d in *.dsc; do
+                       PKG=$d
+               done
+       fi
+fi
+if test -z "$PKG"; then
        echo "Specify .dsc file"
        exit 1
 fi
@@ -11,7 +19,7 @@ if test ! -e "$PKG"; then
 fi
 PRODUCT=`echo *.dsc|sed 's/_.*//g'`
 DEBIAN_DIST="squeeze etch lenny"
-UBUNTU_DIST="jaunty intrepid hardy"
+UBUNTU_DIST="karmic jaunty intrepid hardy"
 
 if test "$2" = "upload"; then
        for dist in ${UBUNTU_DIST}; do