centos: update version number only if it starts with a digit
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 2 Feb 2012 09:23:01 +0000 (09:23 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 2 Feb 2012 09:23:01 +0000 (09:23 +0000)
id-release

index b9998d9..f10cbfa 100755 (executable)
@@ -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