From: Adam Dickmeiss Date: Wed, 2 Jul 2014 13:10:40 +0000 (+0200) Subject: upload script uses debian/control rather than debian/changelog X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=771dd4c6a3605db0d2aa01f8295ba6084332d85a;p=git-tools-moved-to-github.git upload script uses debian/control rather than debian/changelog --- diff --git a/id-deb-build/id-upload.sh b/id-deb-build/id-upload.sh index b5959bc..c4618a9 100755 --- a/id-deb-build/id-upload.sh +++ b/id-deb-build/id-upload.sh @@ -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"