diff options
author | Jörg Mayer <jmayer@loplof.de> | 2007-12-04 03:48:05 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2007-12-04 03:48:05 +0000 |
commit | 6f343baf07c7d747c133886b5a005d9fe42e0a91 (patch) | |
tree | 48c42af1e6ca24014706e207fbfaca35db4d72ec /make-version.pl | |
parent | 8686381c19b9bb9e357d2f75f57dde2f4d61ae15 (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.
svn path=/trunk/; revision=23739
Diffstat (limited to 'make-version.pl')
-rwxr-xr-x | make-version.pl | 6 |
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>) { |