summaryrefslogtreecommitdiff
path: root/configpm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-03-15 23:02:49 +0000
committerNicholas Clark <nick@ccl4.org>2006-03-15 23:02:49 +0000
commit86ef366e59c075737dda06eda5c86422f489d06f (patch)
treebd1dea577905d9dcd237308e6eb25540a7712a87 /configpm
parentce046328943dbedeac116a3b3c08bb7bd02dd56c (diff)
downloadperl-86ef366e59c075737dda06eda5c86422f489d06f.tar.gz
Make the original versions of relocated paths available from
%Config::Config with the prefix "raw_". Not sure if "raw_" is the best choice. p4raw-id: //depot/perl@27513
Diffstat (limited to 'configpm')
-rwxr-xr-xconfigpm4
1 files changed, 3 insertions, 1 deletions
diff --git a/configpm b/configpm
index 1bd2e38630..46b1972156 100755
--- a/configpm
+++ b/configpm
@@ -443,7 +443,9 @@ if ($Common{byteorder}) {
if (@need_relocation) {
print CONFIG_HEAVY 'foreach my $what (qw(', join (' ', @need_relocation),
")) {\n", <<'EOT';
- s/^($what=)(['"])(.*?)\2/$1 . $2 . relocate_inc($3) . $2/me;
+ s<^($what=)(['"])(.*?)\2>
+ <$1 . $2 . relocate_inc($3) . $2 . "\n" .
+ 'raw_' . $1 . $2 . $3 . $2>me;
}
EOT
# Currently it only makes sense to do the ... relocation on Unix, so there's