summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";