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
|
|
|
|
$!
|
|
|
|
$ 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." - "][" - "[" - "]"
|
|
|
|
$ 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_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
|
|
|
$
|
|
|
|
$ 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_SSLXLIB:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLXLIB:
|
1999-05-13 19:37:32 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLINCLUDE:
|
2009-05-16 00:36:56 +08:00
|
|
|
$ IF F$PARSE("WRK_SSLXEXE:") .EQS. "" THEN -
|
|
|
|
CREATE/DIR/LOG WRK_SSLXEXE:
|
1999-05-13 19:37:32 +08:00
|
|
|
$
|
2005-06-01 04:28:41 +08:00
|
|
|
$ EXHEADER := ssl.h,ssl2.h,ssl3.h,ssl23.h,tls1.h,dtls1.h,kssl.h
|
1999-05-13 19:37:32 +08:00
|
|
|
$ E_EXE := ssl_task
|
|
|
|
$ LIBS := LIBSSL
|
|
|
|
$
|
2009-05-16 00:36:56 +08:00
|
|
|
$ XEXE_DIR := [-.'ARCH'.EXE.SSL]
|
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_EXE:
|
|
|
|
$ E = F$EDIT(F$ELEMENT(I, ",", E_EXE),"TRIM")
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF E .EQS. "," THEN GOTO LOOP_EXE_END
|
|
|
|
$ SET NOON
|
2009-05-16 00:36:56 +08:00
|
|
|
$ IF F$SEARCH(XEXE_DIR+E+".EXE") .NES. ""
|
1999-05-13 19:37:32 +08:00
|
|
|
$ THEN
|
2009-05-16 00:36:56 +08:00
|
|
|
$ COPY 'XEXE_DIR''E'.EXE WRK_SSLXEXE:'E'.EXE/log
|
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLXEXE:'E'.EXE
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ENDIF
|
|
|
|
$ SET ON
|
|
|
|
$ GOTO LOOP_EXE
|
|
|
|
$ LOOP_EXE_END:
|
|
|
|
$
|
|
|
|
$ I = 0
|
|
|
|
$ LOOP_LIB:
|
|
|
|
$ E = F$EDIT(F$ELEMENT(I, ",", LIBS),"TRIM")
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF E .EQS. "," THEN GOTO LOOP_LIB_END
|
|
|
|
$ SET NOON
|
2009-05-16 00:36:56 +08:00
|
|
|
$! Object library.
|
|
|
|
$ IF F$SEARCH(XEXE_DIR+E+".OLB") .NES. ""
|
1999-05-13 19:37:32 +08:00
|
|
|
$ THEN
|
2009-05-16 00:36:56 +08:00
|
|
|
$ COPY 'XEXE_DIR''E'.OLB WRK_SSLXLIB:'E'.OLB/log
|
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLXLIB:'E'.OLB
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ENDIF
|
2009-05-16 00:36:56 +08:00
|
|
|
$! Shareable image.
|
|
|
|
$ IF F$SEARCH(XEXE_DIR+E+".EXE") .NES. ""
|
1999-05-13 19:37:32 +08:00
|
|
|
$ THEN
|
2009-05-16 00:36:56 +08:00
|
|
|
$ COPY 'XEXE_DIR''E'.EXE WRK_SSLXLIB:'E'.EXE/log
|
|
|
|
$ SET FILE/PROT=W:RE WRK_SSLXLIB:'E'.EXE
|
1999-05-13 19:37:32 +08:00
|
|
|
$ ENDIF
|
|
|
|
$ SET ON
|
|
|
|
$ GOTO LOOP_LIB
|
|
|
|
$ LOOP_LIB_END:
|
|
|
|
$
|
|
|
|
$ EXIT
|