projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for changelog existence
[git-tools-moved-to-github.git]
/
id-deb-build
/
mkdist.sh
diff --git
a/id-deb-build/mkdist.sh
b/id-deb-build/mkdist.sh
index
2aa0d5a
..
52ef1e9
100755
(executable)
--- 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"
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"
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
fi
if [ "x$2" != x ]; then