diff options
author | Larry Wall <lwall@netlabs.com> | 1991-11-05 09:55:53 +0000 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1991-11-05 09:55:53 +0000 |
commit | 55204971972392ce5a252fbbd6d78b1c48ed70e3 (patch) | |
tree | a0fc0fa7a40dae3b455667572b9aac94b020c246 /h2ph.SH | |
parent | de3bb51191e884300caf98892ecfcc0ca3ebc09c (diff) | |
download | perl-55204971972392ce5a252fbbd6d78b1c48ed70e3.tar.gz |
perl 4.0 patch 18: patch #11, continued
See patch #11.
Diffstat (limited to 'h2ph.SH')
-rw-r--r-- | h2ph.SH | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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"; } |