summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/perlpath.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/util/perlpath.pl')
-rw-r--r--src/lib/libcrypto/util/perlpath.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libcrypto/util/perlpath.pl b/src/lib/libcrypto/util/perlpath.pl
index 9e57e10ad4..a1f236bd98 100644
--- a/src/lib/libcrypto/util/perlpath.pl
+++ b/src/lib/libcrypto/util/perlpath.pl
@@ -1,4 +1,4 @@
1#!/usr/bin/perl 1#!/usr/local/bin/perl
2# 2#
3# modify the '#!/usr/local/bin/perl' 3# modify the '#!/usr/local/bin/perl'
4# line in all scripts that rely on perl. 4# line in all scripts that rely on perl.
@@ -17,7 +17,12 @@ sub wanted
17 @a=<IN>; 17 @a=<IN>;
18 close(IN); 18 close(IN);
19 19
20 $a[0]="#!$ARGV[0]/perl\n"; 20 if (-d $ARGV[0]) {
21 $a[0]="#!$ARGV[0]/perl\n";
22 }
23 else {
24 $a[0]="#!$ARGV[0]\n";
25 }
21 26
22 # Playing it safe... 27 # Playing it safe...
23 $new="$_.new"; 28 $new="$_.new";