]> granicus.if.org Git - docbook-dsssl/commitdiff
Support the + suffix on version numbers
authorNorman Walsh <ndw@nwalsh.com>
Mon, 13 Aug 2001 22:04:42 +0000 (22:04 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 13 Aug 2001 22:04:42 +0000 (22:04 +0000)
cvstools/nextversion

index fa24971cb50e0dbdac7c4992c04744fdd456d57a..45a8be03623cd224ad21be7999bcbec78ef50c36 100755 (executable)
@@ -21,9 +21,9 @@ open (F, 'VERSION') || die "Cannot find VERSION.\n";
 read (F, $_, -s 'VERSION');
 close (F);
 
-if (/^(.*name=.VERSION.>)(\d+)\.(\d+)(<.*)$/s) {
+if (/^(.*name=.VERSION.>)(\d+)\.(\d+)\+?(<.*)$/s) {
     # ok
-} elsif (/^(.*?)(\d+)\.(\d+)(.*)$/s) {
+} elsif (/^(.*?)(\d+)\.(\d+)\+?(.*)$/s) {
     # ok
 } else {
     die "Cannot find version in VERSION.\n";