summaryrefslogtreecommitdiff
path: root/h2ph.SH
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1991-11-05 09:55:53 +0000
committerLarry Wall <lwall@netlabs.com>1991-11-05 09:55:53 +0000
commit55204971972392ce5a252fbbd6d78b1c48ed70e3 (patch)
treea0fc0fa7a40dae3b455667572b9aac94b020c246 /h2ph.SH
parentde3bb51191e884300caf98892ecfcc0ca3ebc09c (diff)
downloadperl-55204971972392ce5a252fbbd6d78b1c48ed70e3.tar.gz
perl 4.0 patch 18: patch #11, continued
See patch #11.
Diffstat (limited to 'h2ph.SH')
-rw-r--r--h2ph.SH7
1 files changed, 4 insertions, 3 deletions
diff --git a/h2ph.SH b/h2ph.SH
index 1e5ac0bc4b..90fd41f980 100644
--- a/h2ph.SH
+++ b/h2ph.SH
@@ -24,7 +24,7 @@ $spitshell >h2ph <<!GROK!THIS!
'di';
'ig00';
-\$perlincl = '$privlib';
+\$perlincl = '$installprivlib';
!GROK!THIS!
: In the following dollars and backticks do not need the extra backslash.
@@ -40,7 +40,7 @@ chdir '/usr/include' || die "Can't cd /usr/include";
FILE
END
-$isatype{@isatype} = (1) x @isatype;
+@isatype{@isatype} = (1) x @isatype;
@ARGV = ('-') unless @ARGV;
@@ -86,6 +86,7 @@ foreach $file (@ARGV) {
$args = $1;
if ($args ne '') {
foreach $arg (split(/,\s*/,$args)) {
+ $arg =~ s/^\s*([^\s].*[^\s])\s*$/$1/;
$curargs{$arg} = 1;
}
$args =~ s/\b(\w)/\$$1/g;
@@ -117,7 +118,7 @@ foreach $file (@ARGV) {
}
}
}
- elsif (/^include <(.*)>/) {
+ elsif (/^include\s+<(.*)>/) {
($incl = $1) =~ s/\.h$/.ph/;
print OUT $t,"require '$incl';\n";
}