diff options
author | lloyd <[email protected]> | 2008-09-07 21:18:43 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-07 21:18:43 +0000 |
commit | 9100e86da73a9ed52ec74ac0441d2e8bfa2681d8 (patch) | |
tree | b50e9fb4d9d088986f3a5ea371315fa9ca4bd51a /configure.pl | |
parent | bd2d5c6a3089387dc6ed0680cd2bf01b0726a5f7 (diff) |
Add the username and hostname to build.h
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 3 |
1 files changed, 3 insertions, 0 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); |