X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fmkdist.sh;h=1dec8ea18021b0b0ff53e807e11277072cbb04f3;hb=fe8b905bfc510ae288fb259261b798cef9c882f1;hp=925d24997de17185148e5792ffc3102fde0af3a4;hpb=b635b93320983660db8ec168a37848bb545ea6ab;p=git-tools-moved-to-github.git diff --git a/id-deb-build/mkdist.sh b/id-deb-build/mkdist.sh index 925d249..1dec8ea 100755 --- a/id-deb-build/mkdist.sh +++ b/id-deb-build/mkdist.sh @@ -11,13 +11,12 @@ fi #we will keep this to get the project name DEBCHANGELOG=debian/changelog -l=`head -1 $DEBCHANGELOG` if [ "x$NAME" != x ]; then echo "Got name $NAME from IDMETA file" else - NAME=`echo $l|sed 's/ .*//g'` - echo "Warning: assuming name $NAME from debian/changelog" + NAME=`head -1 $DEBCHANGELOG|sed 's/ .*//g'` + echo "Warning: assuming name $NAME from $DEBCHANGELOG" fi if [ "x$2" != x ]; then @@ -28,9 +27,9 @@ fi if [ "x$VERSION" != x ]; then echo "Got version $VERSION from IDMETA file" else - FULLVERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'` + FULLVERSION=`head -1 $DEBCHANGELOG|sed 's/.*(//g'|sed 's/).*//g'` VERSION=`echo $FULLVERSION|sed 's/-.*//g'` - echo "Warning: assuming version $VERSION from debian/changelog" + echo "Warning: assuming version $VERSION from $DEBCHANGELOG" fi if [ "x$1" != x ]; then