From dfb590caa0779dd601adead22bfff17220e2f1ff Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Mon, 30 Mar 2009 11:01:58 +0200 Subject: [PATCH] Add all (new) version related config entries, including git Add a start to the derived section --- Changelog | 5 ++++- V.pm | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index d21774f..3219af8 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,9 @@ -0.02 - 29 Mar 2009, H.Merijn Brand +0.02 - 30 Mar 2009, H.Merijn Brand - Added plv2hash + - Documentation + - Add all (new) version related config entries, including git + - Add a derived section 0.01 - 29 Mar 2009, H.Merijn Brand diff --git a/V.pm b/V.pm index 5aa3692..a6e81b6 100644 --- a/V.pm +++ b/V.pm @@ -71,6 +71,9 @@ my %BTD = map { $_ => 0 } qw( # 2. Reported by 'perl -V' (the rest) my @config_vars = qw( + api_subversion + api_version + api_versionstring archlibexp dont_use_nlink d_readlink @@ -78,14 +81,24 @@ my @config_vars = qw( exe_ext inc_version_list ldlibpthname + patchlevel path_sep + perl_patchlevel privlibexp scriptdir sitearchexp sitelibexp + subversion usevendorprefix version + git_commit_id + git_describe + git_branch + git_uncommitted_changes + git_commit_id_title + git_snapshot_date + package revision version_patchlevel_string osname osvers archname @@ -124,6 +137,17 @@ my %empty_build = ( patches => [], ); +sub _make_derived +{ + my $conf = shift; + + exists $conf->{config}{Off_t} + $conf->{derived}{Off_t} = delete $conf->{config}{Off_t}; + exists $conf->{derived}{Off_t} && !exists $conf->{config}{lseektype} and + $conf->{config}{lseektype} = $conf->{derived}{Off_t}; + + } # _make_derived + sub plv2hash { my %config; -- 2.11.4.GIT