aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2007-12-04 03:48:05 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2007-12-04 03:48:05 +0000
commit4c908a401eb0347677f450d1dfbb6d784f64c2bf (patch)
tree48c42af1e6ca24014706e207fbfaca35db4d72ec /make-version.pl
parent1704b02caa8495fda724c0019d3502911785b122 (diff)
Fix for http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1413
Print "SVN Rev unknown" in case the svn command was not found. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23739 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'make-version.pl')
-rwxr-xr-xmake-version.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/make-version.pl b/make-version.pl
index a00a3a50f1..1100afca7c 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
#
-# Copyright 2004 Jörg Mayer (see AUTHORS file)
+# Copyright 2004 Jörg Mayer (see AUTHORS file)
#
# $Id$
#
@@ -119,6 +119,10 @@ sub read_svn_info {
if ($line =~ /Last Changed Rev: (\d+)/) {
$revision = $1;
}
+ if ($line =~ /^$/) {
+ $last = "unknown";
+ $revision = "unknown";
+ }
} else {
# The entries schema is flat, so we can use regexes to parse its contents.
while ($line = <ENTRIES>) {