aboutsummaryrefslogtreecommitdiffstats
path: root/make-version.pl
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2006-01-05 09:20:08 +0000
committerJörg Mayer <jmayer@loplof.de>2006-01-05 09:20:08 +0000
commit292eb61545f9ea50a5c02c6c25013d4bcd4eefa0 (patch)
tree77680c93268955c9f36d9d4a3715e2a7d6d63392 /make-version.pl
parent30adb1d8f7b60b0ad793c53a15fcd2021061d6c9 (diff)
Change SVN version from date to revision
svn path=/trunk/; revision=16951
Diffstat (limited to 'make-version.pl')
-rwxr-xr-xmake-version.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/make-version.pl b/make-version.pl
index 16170680a9..2cf56acbd9 100755
--- a/make-version.pl
+++ b/make-version.pl
@@ -57,7 +57,6 @@ use POSIX qw(strftime);
use Getopt::Long;
my $version_file = 'svnversion.h';
-my $version_string = "";
my $package_string = "";
my $vconf_file = 'version.conf';
my $last = 0;
@@ -103,7 +102,6 @@ sub read_svn_info {
$last && $revision) {
$in_entries = 0;
$version_format =~ s/%#/$revision/;
- $version_string = strftime($version_format, gmtime($last));
$package_format =~ s/%#/$revision/;
$package_string = strftime($package_format, gmtime($last));
@@ -176,8 +174,8 @@ sub print_svn_version
if ($pkg_version) { return; }
if ($last && $revision) {
- $svn_version = "#define SVNVERSION \"" .
- $version_string . "\"\n";
+ $svn_version = "#define SVNVERSION \"SVN Rev " .
+ $revision . "\"\n";
} else {
$svn_version = "/* #define SVNVERSION \"\" */\n";
}