diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-14 05:14:44 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-14 05:14:44 +0000 |
commit | dc0502853eaa4689351eeccc4becf89ec85060e0 (patch) | |
tree | 99eabac3138c6004d91286499edd63df71b52bfc /win32/config_sh.PL | |
parent | f3986ebb5fa156b34b51584d78a10d0d906dbcd6 (diff) | |
download | perl-dc0502853eaa4689351eeccc4becf89ec85060e0.tar.gz |
Fix various details in win32 makefiles and Config.pm setup.
- ldflags is set for both compilers now
- extensions list is now correct
- delete perl95.exe on distclean
- cf_time now gets updated (once)
- ccdlflags is set for Borland
- fix startperl so dprofpp works
p4raw-id: //depot/win32/perl@249
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r-- | win32/config_sh.PL | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 0769ef3112..0c3713cb2e 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -17,7 +17,15 @@ $opt{'cf_email'} = $opt{'cf_by'} . '@' . (gethostbyname('localhost'))[0] while (<>) { s/~([\w_]+)~/$opt{$1}/g; - $_ = "$1='$opt{$1}'\n" if (/^([\w_]+)=/ && exists($opt{$1})); + if (/^([\w_]+)=(.*)$/) { + # this depends on cf_time being empty in the template (or we'll get a loop) + if ($1 eq 'cf_time') { + $_ = "$1='" . localtime(time) . "'\n" if $2 =~ /^\s*'\s*'/; + } + elsif (exists $opt{$1}) { + $_ = "$1='$opt{$1}'\n"; + } + } print; } |