From: Wolfram Schneider Date: Mon, 31 Oct 2011 20:44:54 +0000 (+0000) Subject: extract package name from IDMETA X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=bd0b698f34ba1a1377b694e4e991a8198defa404;p=git-tools-moved-to-github.git extract package name from IDMETA --- diff --git a/id-release b/id-release index 0eb2bf7..d888b5d 100755 --- a/id-release +++ b/id-release @@ -32,7 +32,7 @@ if [ `ls |egrep '\.spec$' | wc -l` -eq 0 ]; then usage else spec=`ls |egrep '\.spec$' | head -1` - package=`basename $spec .spec` + package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA` fi case $1 in