summaryrefslogtreecommitdiff
path: root/VMS
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-07-02 09:51:06 +0200
committerRichard Levitte <levitte@openssl.org>2016-07-02 15:49:45 +0200
commitdbb3aba17ead133ce14530036f65b2457b6f8242 (patch)
treea512a8c2047ef345e5268fd26127f43db0500c11 /VMS
parent8842005e75c2f42ed594a3b44189e0e5ac29be18 (diff)
downloadopenssl-new-dbb3aba17ead133ce14530036f65b2457b6f8242.tar.gz
Install the openssl app with version number on VMS
This makes it possible for script writers to lock on to a specific version if they need to. Note that only the major version number is used. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'VMS')
-rw-r--r--VMS/openssl_utils.com11
-rw-r--r--VMS/openssl_utils.com.in14
2 files changed, 14 insertions, 11 deletions
diff --git a/VMS/openssl_utils.com b/VMS/openssl_utils.com
deleted file mode 100644
index 09c75d973c..0000000000
--- a/VMS/openssl_utils.com
+++ /dev/null
@@ -1,11 +0,0 @@
-$ ! OpenSSL utilities
-$ !
-$
-$ OPENSSL :== $OSSL$EXE:OPENSSL
-$
-$ IF F$SYMBOL(PERL) .EQS. "STRING"
-$ THEN
-$ C_REHASH :== 'PERL' OSSL$EXE:c_rehash.pl
-$ ELSE
-$ WRITE SYS$ERROR "NOTE: no perl => no C_REHASH"
-$ ENDIF
diff --git a/VMS/openssl_utils.com.in b/VMS/openssl_utils.com.in
new file mode 100644
index 0000000000..edd733d7bb
--- /dev/null
+++ b/VMS/openssl_utils.com.in
@@ -0,0 +1,14 @@
+$ ! OpenSSL utilities
+$ !
+$
+$ v := {- sprintf "%02d%02d", split(/\./, $config{version}) -}
+$
+$ OPENSSL'v' :== $OSSL$EXE:OPENSSL'v'
+$ OPENSSL :== $OSSL$EXE:OPENSSL'v'
+$
+$ IF F$TYPE(PERL) .EQS. "STRING"
+$ THEN
+$ C_REHASH :== 'PERL' OSSL$EXE:c_rehash.pl
+$ ELSE
+$ WRITE SYS$ERROR "NOTE: no perl => no C_REHASH"
+$ ENDIF