summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2007-04-18 19:04:40 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-04-18 19:04:40 +0000
commit43dddb5979cb03af335f65a6070fe864ce8afd7e (patch)
tree2b83f16c2a716c69211a1ea3942a5a8c378f2f6b /Porting
parentb84cdbe2ce63ed4f4e041a1277f4da249e158af9 (diff)
downloadperl-43dddb5979cb03af335f65a6070fe864ce8afd7e.tar.gz
1. Move #30327 to the generation location
2. Regen after backports 3. Include Jarkko's $run and \n patch p4raw-id: //depot/perl@30977
Diffstat (limited to 'Porting')
-rwxr-xr-xPorting/config_h.pl21
1 files changed, 20 insertions, 1 deletions
diff --git a/Porting/config_h.pl b/Porting/config_h.pl
index 7c1deec530..cf69b2ad32 100755
--- a/Porting/config_h.pl
+++ b/Porting/config_h.pl
@@ -3,7 +3,7 @@
# This script reorders config_h.SH after metaconfig
# Changing metaconfig is too complicated
#
-# Copyright (C) 2005-2005 by H.Merijn Brand (m)'05 [25-05-2005]
+# Copyright (C) 2005-2007 by H.Merijn Brand (m)'07 [18-04-2007]
#
# You may distribute under the terms of either the GNU General Public
# License or the Artistic License, as specified in the README file.
@@ -55,6 +55,25 @@ do {
}
} while ($changed);
+# 30327
+for (grep m{echo .Extracting \$CONFIG_H} => @ch) {
+ my $case = join "\n",
+ qq{case "\$CONFIG_H" in},
+ qq{already-done) echo "Not re-extracting config.h" ;;},
+ qq{*)}, "";
+ s{^(?=echo .Extracting)}{$case}m;
+ }
+push @ch, ";;\nesac\n";
+
+
open $ch, "> $cSH" or die "Cannot write $cSH: $!\n";
+print $ch <<EOW;
+# THIS IS A GENERATED FILE
+# DO NOT HAND-EDIT
+#
+# See Porting/config_h.pl
+
+EOW
+
print $ch @ch;
close $ch;