summaryrefslogtreecommitdiff
path: root/utils/c2ph.PL
diff options
context:
space:
mode:
Diffstat (limited to 'utils/c2ph.PL')
-rw-r--r--utils/c2ph.PL6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/c2ph.PL b/utils/c2ph.PL
index 5f4523aa84..9f80bc04a6 100644
--- a/utils/c2ph.PL
+++ b/utils/c2ph.PL
@@ -12,10 +12,8 @@ use File::Basename qw(&basename &dirname);
# This forces PL files to create target in same directory as PL file.
# This is so that make depend always knows where to find PL derivatives.
-chdir(dirname($0));
-($file = basename($0)) =~ s/\.PL$//;
-$file =~ s/\.pl$//
- if ($^O eq 'VMS' or $^O eq 'os2'); # "case-forgiving"
+chdir dirname($0);
+$file = basename($0, '.PL');
open OUT,">$file" or die "Can't create $file: $!";