From: Wolfram Schneider Date: Thu, 26 Jan 2012 11:41:54 +0000 (+0000) Subject: if NAME is not configured in IDMETA, use .spec instead X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6946912623193b5a6cbe0ea7409b47b35a2f7dd3;p=git-tools-moved-to-github.git if NAME is not configured in IDMETA, use .spec instead --- diff --git a/id-release b/id-release index bce301a..169024e 100755 --- a/id-release +++ b/id-release @@ -25,7 +25,7 @@ echo "Did you updated the news log file?" for file in Changes News NEWS do if [ -e $file ]; then - ls -l Changes + ls -l $file fi done echo "" @@ -47,6 +47,9 @@ if [ `ls |egrep '\.spec$' | wc -l` -eq 0 ]; then else spec=`ls |egrep '\.spec$' | head -1` package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA` + if [ -z "$package" ]; then + package=$spec + fi fi # configure new version