From 8695000b833f9464ef414e09cb2a96958fe96c8b Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 13 Mar 2011 12:09:01 +0000 Subject: Slightly better out-of-svn build info svn path=/trunk/netsurf/; revision=12022 --- utils/svn-testament.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'utils/svn-testament.pl') diff --git a/utils/svn-testament.pl b/utils/svn-testament.pl index 35df4af15..f159f00d4 100755 --- a/utils/svn-testament.pl +++ b/utils/svn-testament.pl @@ -31,8 +31,8 @@ if ( $svn_present ) { } } else { $svninfo{repositoryroot} = "http://nowhere/"; - $svninfo{url} = "http://nowhere/netsurf/trunk/"; - $svninfo{revision} = "0"; + $svninfo{url} = "http://nowhere/tarball/"; + $svninfo{revision} = "unknown"; } my %svnstatus; # The SVN status output @@ -78,6 +78,9 @@ if ($url =~ m@/trunk/@) { if ($url =~ m@/tags/@) { $testament .= "#define WT_BRANCHISTAG 1\n"; } +if ($url =~ m@/tarball/@) { + $testament .= "#define WT_NO_SVN 1\n"; +} $testament .= "#define WT_REVID \"$svninfo{revision}\"\n"; $testament .= "#define WT_MODIFIED " . scalar(keys %svnstatus) . "\n"; $testament .= "#define WT_MODIFICATIONS {\\\n"; -- cgit v1.2.3