aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-07 21:18:43 +0000
committerlloyd <[email protected]>2008-09-07 21:18:43 +0000
commit9100e86da73a9ed52ec74ac0441d2e8bfa2681d8 (patch)
treeb50e9fb4d9d088986f3a5ea371315fa9ca4bd51a
parentbd2d5c6a3089387dc6ed0680cd2bf01b0726a5f7 (diff)
Add the username and hostname to build.h
-rwxr-xr-xconfigure.pl3
-rw-r--r--misc/config/buildh.in8
2 files changed, 7 insertions, 4 deletions
diff --git a/configure.pl b/configure.pl
index 479d85d64..2f3982b9e 100755
--- a/configure.pl
+++ b/configure.pl
@@ -6,6 +6,7 @@ use strict;
use Getopt::Long;
use File::Spec;
use File::Copy;
+use Sys::Hostname;
my $MAJOR_VERSION = 1;
my $MINOR_VERSION = 7;
@@ -50,6 +51,8 @@ sub main {
$$config{'command-line'} = $0 . ' ' . join(' ', @ARGV);
$$config{'timestamp'} = gmtime;
+ $$config{'user'} = getpwuid($<) || "unknown";
+ $$config{'hostname'} = hostname;
%CPU = read_info_files($config, 'arch', \&get_arch_info);
%OPERATING_SYSTEM = read_info_files($config, 'os', \&get_os_info);
diff --git a/misc/config/buildh.in b/misc/config/buildh.in
index 7739d9bc4..be9ad4ccf 100644
--- a/misc/config/buildh.in
+++ b/misc/config/buildh.in
@@ -3,10 +3,10 @@
#define BOTAN_BUILD_CONFIG_H__
/*
-This file was automatically generated at
- @{var:timestamp} UTC
-by
- @{var:command-line}
+@{var:timestamp} UTC
+
+This file was automatically generated by user @{var:user}
+on host @{var:hostname} running @{var:command-line}
Target
-------