X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fmkdist.sh;fp=id-deb-build%2Fmkdist.sh;h=40a99caa637dcef2389e158c66527ec8534eee4e;hb=c30556622c5b983c4d1a9a3f3b65bf2d2bd746e1;hp=52ef1e9a318e4f1aaaabeaca635f5aa05bbbea0f;hpb=f93f2547e33dbf4216e110d2c2cc2fa2cf22bb3c;p=git-tools-moved-to-github.git diff --git a/id-deb-build/mkdist.sh b/id-deb-build/mkdist.sh index 52ef1e9..40a99ca 100755 --- a/id-deb-build/mkdist.sh +++ b/id-deb-build/mkdist.sh @@ -15,15 +15,14 @@ else fi #we will keep this to get the project name -DEBCHANGELOG=debian/changelog if [ "x$NAME" != x ]; then echo "Got name $NAME from IDMETA file" -elif test -f $DEBCHANGELOG; then - NAME=`head -1 $DEBCHANGELOG|sed 's/ .*//g'` - echo "Warning: assuming name $NAME from $DEBCHANGELOG" +elif test -f debian/control; then + NAME=`awk '/Source:/ {print $2}' debian/control` + echo "Warning: assuming name $NAME from debian/control" else - die "No $DEBCHANGELOG and no NAME in IDMETA" + die "No debian/control and no NAME in IDMETA" fi if [ "x$2" != x ]; then