mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-01 04:44:19 +03:00
Slightly better out-of-svn build info
svn path=/trunk/netsurf/; revision=12022
This commit is contained in:
parent
37f17e4d73
commit
8695000b83
@ -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
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user