From 771dd4c6a3605db0d2aa01f8295ba6084332d85a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 2 Jul 2014 15:10:40 +0200 Subject: [PATCH] upload script uses debian/control rather than debian/changelog --- id-deb-build/id-upload.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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" -- 1.7.10.4