1999-05-13 11:37:32 +00:00
|
|
|
$! INSTALL.COM -- Installs the files in a given directory tree
|
|
|
|
$!
|
|
|
|
$! Author: Richard Levitte <richard@levitte.org>
|
|
|
|
$! Time of creation: 22-MAY-1998 10:13
|
|
|
|
$!
|
|
|
|
$! P1 root of the directory tree
|
|
|
|
$!
|
2009-05-15 16:37:29 +00:00
|
|
|
$
|
1999-05-13 11:37:32 +00:00
|
|
|
$ IF P1 .EQS. ""
|
|
|
|
$ THEN
|
|
|
|
$ WRITE SYS$OUTPUT "First argument missing."
|
2009-05-15 16:37:29 +00:00
|
|
|
$ WRITE SYS$OUTPUT -
|
|
|
|
"Should be the directory where you want things installed."
|
1999-05-13 11:37:32 +00:00
|
|
|
$ EXIT
|
|
|
|
$ ENDIF
|
|
|
|
$
|
2009-05-15 16:37:29 +00:00
|
|
|
$ IF (F$GETSYI("CPU").LT.128)
|
|
|
|
$ THEN
|
|
|
|
$ ARCH := VAX
|
|
|
|
$ ELSE
|
|
|
|
$ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
|
|
|
|
$ IF (ARCH .EQS. "") THEN ARCH = "UNK"
|
|
|
|
$ ENDIF
|
|
|
|
$
|
1999-05-13 11:37:32 +00:00
|
|
|
$ ROOT = F$PARSE(P1,"[]A.;0",,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0"
|
|
|
|
$ ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY")
|
|
|
|
$ ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") -
|
|
|
|
- "[000000." - "][" - "[" - "]"
|
|
|
|
$ ROOT = ROOT_DEV + "[" + ROOT_DIR
|
|
|
|
$
|
|
|
|
$ DEFINE/NOLOG WRK_SSLROOT 'ROOT'.] /TRANS=CONC
|
2009-05-15 16:37:29 +00:00
|
|
|
$ DEFINE/NOLOG WRK_SSLEXE WRK_SSLROOT:['ARCH'_EXE]
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
|
|
|
$ IF F$PARSE("WRK_SSLROOT:[000000]") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLROOT:[000000]
|
2009-05-15 16:37:29 +00:00
|
|
|
$ IF F$PARSE("WRK_SSLEXE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLEXE:
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
|
|
|
$ EXE := openssl
|
|
|
|
$
|
2009-05-15 16:37:29 +00:00
|
|
|
$ EXE_DIR := [-.'ARCH'.EXE.APPS]
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
|
|
|
$ I = 0
|
|
|
|
$ LOOP_EXE:
|
|
|
|
$ E = F$EDIT(F$ELEMENT(I, ",", EXE),"TRIM")
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF E .EQS. "," THEN GOTO LOOP_EXE_END
|
|
|
|
$ SET NOON
|
2009-05-15 16:37:29 +00:00
|
|
|
$ IF F$SEARCH(EXE_DIR+E+".EXE") .NES. ""
|
1999-05-13 11:37:32 +00:00
|
|
|
$ THEN
|
2009-05-15 16:37:29 +00:00
|
|
|
$ COPY 'EXE_DIR''E'.EXE WRK_SSLEXE:'E'.EXE/log
|
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLEXE:'E'.EXE
|
1999-05-13 11:37:32 +00:00
|
|
|
$ ENDIF
|
|
|
|
$ SET ON
|
|
|
|
$ GOTO LOOP_EXE
|
|
|
|
$ LOOP_EXE_END:
|
|
|
|
$
|
|
|
|
$ SET NOON
|
2009-05-15 16:37:29 +00:00
|
|
|
$ COPY CA.COM WRK_SSLEXE:CA.COM/LOG
|
2009-11-12 16:59:18 +00:00
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLEXE:CA.COM
|
1999-05-13 11:37:32 +00:00
|
|
|
$ COPY OPENSSL-VMS.CNF WRK_SSLROOT:[000000]OPENSSL.CNF/LOG
|
|
|
|
$ SET FILE/PROT=W:R WRK_SSLROOT:[000000]OPENSSL.CNF
|
|
|
|
$ SET ON
|
|
|
|
$
|
|
|
|
$ EXIT
|