From: Wolfram Schneider Date: Thu, 2 Feb 2012 09:23:01 +0000 (+0000) Subject: centos: update version number only if it starts with a digit X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=8ea2b7c6291744aeb09ea2f7f14d53a327ba9413;p=git-tools-moved-to-github.git centos: update version number only if it starts with a digit --- diff --git a/id-release b/id-release index b9998d9..f10cbfa 100755 --- a/id-release +++ b/id-release @@ -69,7 +69,7 @@ fi perl -i.bak -npe "\$. == 1 && s,\(.*?\),($version)," debian/changelog # update redhat version file -perl -i.bak -npe "s,^Version: .*,Version: $version," $spec +perl -i.bak -npe "s,^Version: \d+.*,Version: $version," $spec