Slightly better out-of-svn build info

svn path=/trunk/netsurf/; revision=12022
This commit is contained in:
Daniel Silverstone 2011-03-13 12:09:01 +00:00
parent 37f17e4d73
commit 8695000b83
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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";