diff options
author | Swedish Language Team <swedish> | 2000-03-07 07:38:43 +0000 |
---|---|---|
committer | Swedish Language Team <swedish> | 2000-03-07 07:38:43 +0000 |
commit | 713929062c8b0d47d740594dc944e9079d9321a3 (patch) | |
tree | 4402b3dae36a9fd7d66c1e7395d93bc5b6813577 /copypage.pl | |
parent | 35362d0f7eb07eb0fdfd86c438bb4ec618ca8a41 (diff) |
Bugfix
CVS version numbers
copypage.pl: 1.1 -> 1.2
Diffstat (limited to 'copypage.pl')
-rwxr-xr-x | copypage.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/copypage.pl b/copypage.pl index db919acbbd8..b7e7ca751ef 100755 --- a/copypage.pl +++ b/copypage.pl @@ -6,7 +6,7 @@ # Makefile from the source. # Written on 2000-02-26 by peter karlsson <peter@softwolves.pp.se> -# © Copyright 2000 Software in the public intereset, Inc. +# © Copyright 2000 Software in the public interest, Inc. # This program is released under the GNU General Public License, v2. # $Id$ @@ -95,7 +95,7 @@ open DST, ">$dstfile" # Retrieve CVS revision number while (<CVS>) { - if (m[^/$filename/([0-9]*\.[0-9])*/]o) + if (m[^/$filename/([0-9]*\.[0-9]*)/]o) { $revision = $1; } @@ -103,7 +103,11 @@ while (<CVS>) close CVS; -print "Could not get revision number\n" unless $revision; +unless ($revision) +{ + print "Could not get revision number - bug in script?\n"; + revision = '1.1'; +} # Copy the file and insert the revision number $insertedrevision = 0; |