From 6946912623193b5a6cbe0ea7409b47b35a2f7dd3 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 26 Jan 2012 11:41:54 +0000 Subject: [PATCH] if NAME is not configured in IDMETA, use .spec instead --- id-release | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.10.4