From c615507e150592895980608d00601beed16d28b9 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 13 Mar 2011 17:32:00 +0000 Subject: Set version using testament.h instead of old ARexx script svn path=/trunk/netsurf/; revision=12028 --- utils/svn-testament.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils') diff --git a/utils/svn-testament.pl b/utils/svn-testament.pl index 30240e927..e0f678b66 100755 --- a/utils/svn-testament.pl +++ b/utils/svn-testament.pl @@ -60,6 +60,11 @@ my %userinfo; # The information about the current user $userinfo{GECOS} = $gecos; } +# The current date, in AmigaOS version friendly format (dd.mm.yyyy) + +my $compiledate = `date +%d.%m.%Y`; +chomp $compiledate; + # Spew the testament out my $testament = ""; @@ -77,6 +82,7 @@ $hostname =~ s/"/\\"/g; $testament .= "#define WT_ROOT \"$qroot\"\n"; $testament .= "#define WT_HOSTNAME \"$hostname\"\n"; +$testament .= "#define WT_COMPILEDATE \"$compiledate\"\n"; my $url = $svninfo{url}; # This only works on 1.3.x and above -- cgit v1.2.3