Make sure tsget and c_rehash are named with .pl suffix on Windows and VMS
authorRichard Levitte <levitte@openssl.org>
Mon, 23 May 2016 13:49:25 +0000 (15:49 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 23 May 2016 19:48:42 +0000 (21:48 +0200)
Especially on Windows, the .pl suffix is associated with the perl
interpreter, and therefore make those scripts usable as commands of
their own.  On VMS, it simply looks better.

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/build.info
tools/build.info

index 3baba66feb1c10e1c017bcd8cdbf6d084f89c3fe..6a742cf7cc1defa466e2ff4169fa19de4fa9045c 100644 (file)
@@ -1,4 +1,6 @@
-{- use File::Spec::Functions qw/catdir rel2abs/; -}
+{- use File::Spec::Functions qw/catdir rel2abs/;
+   our $tsget_name = $config{target} =~ /^(VC|vms)-/ ? "tsget.pl" : "tsget";
+   "" -}
 IF[{- !$disabled{apps} -}]
   PROGRAMS=openssl
   SOURCE[openssl]=\
@@ -15,7 +17,7 @@ IF[{- !$disabled{apps} -}]
   INCLUDE[openssl]={- rel2abs(catdir($builddir,"../include")) -} .. ../include
   DEPEND[openssl]=../libssl
 
-  SCRIPTS=CA.pl tsget
+  SCRIPTS=CA.pl {- $tsget_name -}
   SOURCE[CA.pl]=CA.pl.in
-  SOURCE[tsget]=tsget.in
+  SOURCE[{- $tsget_name -}]=tsget.in
 ENDIF
index 3810fbcbe08f19aab6e732491981f754be570fce..059e58234576c6e5265fa225f9e8418d665d459d 100644 (file)
@@ -1,4 +1,7 @@
+{- our $c_rehash_name =
+       $config{target} =~ /^(VC|vms)-/ ? "c_rehash.pl" : "c_rehash";
+   "" -}
 IF[{- !$disabled{apps} -}]
-  SCRIPTS=c_rehash
-  SOURCE[c_rehash]=c_rehash.in
+  SCRIPTS={- $c_rehash_name -}
+  SOURCE[{- $c_rehash_name -}]=c_rehash.in
 ENDIF