From a7424f016275425f9a4fc82b7aac2e77daf13a1a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 18 Jun 2013 13:47:55 +0200 Subject: [PATCH] Check for changelog existence --- id-deb-build/mkdist.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/id-deb-build/mkdist.sh b/id-deb-build/mkdist.sh index 2aa0d5a..52ef1e9 100755 --- a/id-deb-build/mkdist.sh +++ b/id-deb-build/mkdist.sh @@ -19,9 +19,11 @@ DEBCHANGELOG=debian/changelog if [ "x$NAME" != x ]; then echo "Got name $NAME from IDMETA file" -else +elif test -f $DEBCHANGELOG; then NAME=`head -1 $DEBCHANGELOG|sed 's/ .*//g'` echo "Warning: assuming name $NAME from $DEBCHANGELOG" +else + die "No $DEBCHANGELOG and no NAME in IDMETA" fi if [ "x$2" != x ]; then -- 1.7.10.4