summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2011-03-13 12:09:01 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2011-03-13 12:09:01 +0000
commit8695000b833f9464ef414e09cb2a96958fe96c8b (patch)
tree51c69debd9991436df3e5eced5a20e40a77c8ed9
parent37f17e4d73b8614d5d2e7a71c4b7f0a8c066b0e3 (diff)
downloadnetsurf-8695000b833f9464ef414e09cb2a96958fe96c8b.tar.gz
netsurf-8695000b833f9464ef414e09cb2a96958fe96c8b.tar.bz2
Slightly better out-of-svn build info
svn path=/trunk/netsurf/; revision=12022
-rw-r--r--content/fetchers/about.c2
-rwxr-xr-xutils/svn-testament.pl7
2 files changed, 7 insertions, 2 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 1f441d485..b343d2a61 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -312,6 +312,8 @@ static bool fetch_about_testament_handler(struct fetch_about_context *ctx)
"# This is a *DEVELOPMENT* build from the trunk.\n\n"
#elif defined(WT_BRANCHISRELEASE)
"# This is a release build of NetSurf\n\n"
+#elif defined(WT_NO_SVN)
+ "# This NetSurf was built outside of our revision control environment.\n# This testament is therefore very useful.\n\n"
#else
"# This NetSurf was built from a branch.\n\n"
#endif
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";