upload script uses debian/control rather than debian/changelog
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 2 Jul 2014 13:10:40 +0000 (15:10 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 2 Jul 2014 13:10:40 +0000 (15:10 +0200)
id-deb-build/id-upload.sh

index b5959bc..c4618a9 100755 (executable)
@@ -7,14 +7,13 @@ fi
 if test -n "$NAME"; then
        PRODUCT=$NAME
 else
-       DEBCHANGELOG=debian/changelog
-       if test ! -f $DEBCHANGELOG; then
-               echo "$DEBCHANGELOG missing"
+       DEBCONTROL=debian/control
+       if test ! -f $DEBCONTROL; then
+               echo "$DEBCONTROL missing"
                echo "The current directory should be base source of package"
                exit 1
        fi
-       l=`head -1 $DEBCHANGELOG`
-       PRODUCT=`echo $l|sed 's/ .*//g'`
+       PRODUCT=`awk '/Source:/ {print $2}' $DEBCONTROL`
 fi
 TAR=${PRODUCT}-${VERSION}.tar.gz
 echo "TAR=$TAR"