1999-05-13 19:37:32 +08: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-16 00:36:56 +08:00
|
|
|
$ DEF_ORIG = F$ENVIRONMENT( "DEFAULT")
|
|
|
|
$ ON ERROR THEN GOTO TIDY
|
|
|
|
$ ON CONTROL_C THEN GOTO TIDY
|
|
|
|
$
|
1999-05-13 19:37:32 +08:00
|
|
|
$ IF P1 .EQS. ""
|
|
|
|
$ THEN
|
|
|
|
$ WRITE SYS$OUTPUT "First argument missing."
|
2009-05-16 00:36:56 +08:00
|
|
|
$ WRITE SYS$OUTPUT -
|
|
|
|
"It Should be the directory where you want things installed."
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXIT
|
|
|
|
$ ENDIF
|
|
|
|
$
|
2009-05-16 00:36:56 +08: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 19:37:32 +08: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" - "[000000." - "][" - "[" - "]"
|
|
|
|
$ ROOT = ROOT_DEV + "[" + ROOT_DIR
|
|
|
|
$
|
|
|
|
$ DEFINE/NOLOG WRK_SSLROOT 'ROOT'.] /TRANS=CONC
|
2009-05-16 00:36:56 +08:00
|
|
|
$ DEFINE/NOLOG WRK_SSLXLIB WRK_SSLROOT:['ARCH'_LIB]
|
1999-05-13 19:37:32 +08:00
|
|
|
$ DEFINE/NOLOG WRK_SSLLIB WRK_SSLROOT:[LIB]
|
|
|
|
$ DEFINE/NOLOG WRK_SSLINCLUDE WRK_SSLROOT:[INCLUDE]
|
2009-05-16 00:36:56 +08:00
|
|
|
$ DEFINE/NOLOG WRK_SSLXEXE WRK_SSLROOT:['ARCH'_EXE]
|
1999-05-13 19:37:32 +08:00
|
|
|
$ DEFINE/NOLOG WRK_SSLCERTS WRK_SSLROOT:[CERTS]
|
|
|
|
$ DEFINE/NOLOG WRK_SSLPRIVATE WRK_SSLROOT:[PRIVATE]
|
|
|
|
$
|
2009-05-16 00:36:56 +08:00
|
|
|
$!
|
|
|
|
$! Exhibit the destination directory.
|
|
|
|
$!
|
|
|
|
$ WRITE SYS$OUTPUT " Installing to (WRK_SSLROOT) ="
|
|
|
|
$ WRITE SYS$OUTPUT " ''f$trnlnm( "WRK_SSLROOT")'"
|
|
|
|
$ WRITE SYS$OUTPUT ""
|
|
|
|
$
|
1999-05-13 19:37:32 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLROOT:[000000]") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLROOT:[000000]
|
2009-05-16 00:36:56 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLXEXE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLXEXE:
|
|
|
|
$ IF F$PARSE("WRK_SSLXLIB:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLXLIB:
|
1999-05-13 19:37:32 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLLIB:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLLIB:
|
|
|
|
$ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLINCLUDE:
|
|
|
|
$ IF F$PARSE("WRK_SSLCERTS:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLCERTS:
|
|
|
|
$ IF F$PARSE("WRK_SSLPRIVATE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLPRIVATE:
|
|
|
|
$ IF F$PARSE("WRK_SSLROOT:[VMS]") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLROOT:[VMS]
|
|
|
|
$
|
2002-06-27 17:18:45 +08:00
|
|
|
$ SDIRS := CRYPTO,SSL,APPS,VMS!,RSAREF,TEST,TOOLS
|
2001-02-22 22:45:02 +08:00
|
|
|
$ EXHEADER := e_os2.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$
|
|
|
|
$ COPY 'EXHEADER' WRK_SSLINCLUDE: /LOG
|
1999-11-12 09:42:59 +08:00
|
|
|
$ SET FILE/PROT=WORLD:RE WRK_SSLINCLUDE:'EXHEADER'
|
1999-05-13 19:37:32 +08:00
|
|
|
$
|
|
|
|
$ I = 0
|
|
|
|
$ LOOP_SDIRS:
|
|
|
|
$ D = F$ELEMENT(I, ",", SDIRS)
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF D .EQS. "," THEN GOTO LOOP_SDIRS_END
|
|
|
|
$ WRITE SYS$OUTPUT "Installing ",D," files."
|
|
|
|
$ SET DEFAULT [.'D']
|
|
|
|
$ @INSTALL 'ROOT']
|
|
|
|
$ SET DEFAULT [-]
|
|
|
|
$ GOTO LOOP_SDIRS
|
|
|
|
$ LOOP_SDIRS_END:
|
|
|
|
$
|
|
|
|
$ WRITE SYS$OUTPUT ""
|
|
|
|
$ WRITE SYS$OUTPUT " Installation done!"
|
|
|
|
$ WRITE SYS$OUTPUT ""
|
|
|
|
$ WRITE SYS$OUTPUT " You might want to purge ",ROOT,"...]"
|
|
|
|
$ WRITE SYS$OUTPUT ""
|
|
|
|
$
|
2009-05-16 00:36:56 +08:00
|
|
|
$ TIDY:
|
|
|
|
$ SET DEFAULT 'DEF_ORIG'
|
|
|
|
$
|
|
|
|
$ DEASSIGN WRK_SSLROOT
|
|
|
|
$ DEASSIGN WRK_SSLXLIB
|
|
|
|
$ DEASSIGN WRK_SSLLIB
|
|
|
|
$ DEASSIGN WRK_SSLINCLUDE
|
|
|
|
$ DEASSIGN WRK_SSLXEXE
|
|
|
|
$ DEASSIGN WRK_SSLCERTS
|
|
|
|
$ DEASSIGN WRK_SSLPRIVATE
|
|
|
|
$
|
1999-05-13 19:37:32 +08:00
|
|
|
$ EXIT
|