summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorJohn E. Malmberg <wb8tyw@qsl.net>2005-09-19 21:22:24 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-09-20 06:51:38 +0000
commit96021e8787003786059541add9ccb61ad6d9f5db (patch)
tree3498d04f74d41bd1ac67f9969ff5c38e196d2100 /x2p
parent706aa1c9997955fcf6fd0bef3a5f89c64f6802fe (diff)
downloadperl-96021e8787003786059541add9ccb61ad6d9f5db.tar.gz
[patch@25502] Add hard link and V8.2 crtl support to VMS.
From: "John E. Malmberg" <wb8tyw@qsl.net> Message-ID: <432F9C90.7080702@qsl.net> p4raw-id: //depot/perl@25507
Diffstat (limited to 'x2p')
-rw-r--r--x2p/s2p.PL12
1 files changed, 9 insertions, 3 deletions
diff --git a/x2p/s2p.PL b/x2p/s2p.PL
index 4b2daa918d..b0928fc32b 100644
--- a/x2p/s2p.PL
+++ b/x2p/s2p.PL
@@ -564,7 +564,13 @@ $useEXTBRE =~ s/[^<>wWyB]//g; # gawk RE's handle these
my $doAutoPrint = 1; # automatic printing of pattern space (-n => 0)
my $doOpenWrite = 1; # open w command output files at start (-a => 0)
my $svOpenWrite = 0; # save $doOpenWrite
-my $doGenerate = $0 eq 's2p';
+
+# lower case $0 below as a VMSism. The VMS build procedure creates the
+# s2p file traditionally in upper case on the disk. When VMS is in a
+# case preserved or case sensitive mode, $0 will be returned in the exact
+# case which will be on the disk, and that is not predictable at this time.
+
+my $doGenerate = lc($0) eq 's2p';
# Collected and compiled script
#
@@ -2046,9 +2052,9 @@ way you wish, provided you do not restrict others from doing the same.
close OUT or die "Can't close $file: $!";
chmod 0755, $file or die "Can't reset permissions for $file: $!\n";
unlink 'psed';
-print "Linking s2p to psed.\n";
+print "Linking $file to psed.\n";
if (defined $Config{d_link}) {
- link 's2p', 'psed';
+ link $file, 'psed';
} else {
unshift @INC, '../lib';
require File::Copy;