1 $! INSTALL.COM -- Installs the files in a given directory tree
3 $! Author: Richard Levitte <richard@levitte.org>
4 $! Time of creation: 22-MAY-1998 10:13
6 $! P1 root of the directory tree
10 $ WRITE SYS$OUTPUT "First argument missing."
12 "It should be the directory where you want things installed."
16 $ IF (F$GETSYI("CPU").LT.128)
20 $ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
21 $ IF (ARCH .EQS. "") THEN ARCH = "UNK"
24 $ ROOT = F$PARSE(P1,"[]A.;0",,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0"
25 $ ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY")
26 $ ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") -
27 - "[000000." - "][" - "[" - "]"
28 $ ROOT = ROOT_DEV + "[" + ROOT_DIR
30 $ DEFINE/NOLOG WRK_SSLROOT 'ROOT'.] /TRANS=CONC
31 $ DEFINE/NOLOG WRK_SSLXLIB WRK_SSLROOT:['ARCH'_LIB]
32 $ DEFINE/NOLOG WRK_SSLINCLUDE WRK_SSLROOT:[INCLUDE]
33 $ DEFINE/NOLOG WRK_SSLXEXE WRK_SSLROOT:['ARCH'_EXE]
35 $ IF F$PARSE("WRK_SSLROOT:[000000]") .EQS. "" THEN -
36 CREATE/DIR/LOG WRK_SSLROOT:[000000]
37 $ IF F$PARSE("WRK_SSLXLIB:") .EQS. "" THEN -
38 CREATE/DIR/LOG WRK_SSLXLIB:
39 $ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN -
40 CREATE/DIR/LOG WRK_SSLINCLUDE:
41 $ IF F$PARSE("WRK_SSLXEXE:") .EQS. "" THEN -
42 CREATE/DIR/LOG WRK_SSLXEXE:
44 $ EXHEADER := ssl.h,ssl2.h,ssl3.h,ssl23.h,tls1.h,dtls1.h,kssl.h
48 $ XEXE_DIR := [-.'ARCH'.EXE.SSL]
50 $ COPY 'EXHEADER' WRK_SSLINCLUDE:/LOG
51 $ SET FILE/PROT=WORLD:RE WRK_SSLINCLUDE:'EXHEADER'
55 $ E = F$EDIT(F$ELEMENT(I, ",", E_EXE),"TRIM")
57 $ IF E .EQS. "," THEN GOTO LOOP_EXE_END
59 $ IF F$SEARCH(XEXE_DIR+E+".EXE") .NES. ""
61 $ COPY 'XEXE_DIR''E'.EXE WRK_SSLXEXE:'E'.EXE/log
62 $ SET FILE/PROT=W:RE WRK_SSLXEXE:'E'.EXE
70 $ E = F$EDIT(F$ELEMENT(I, ",", LIBS),"TRIM")
72 $ IF E .EQS. "," THEN GOTO LOOP_LIB_END
75 $ IF F$SEARCH(XEXE_DIR+E+".OLB") .NES. ""
77 $ COPY 'XEXE_DIR''E'.OLB WRK_SSLXLIB:'E'.OLB/log
78 $ SET FILE/PROT=W:RE WRK_SSLXLIB:'E'.OLB
81 $ IF F$SEARCH(XEXE_DIR+E+".EXE") .NES. ""
83 $ COPY 'XEXE_DIR''E'.EXE WRK_SSLXLIB:'E'.EXE/log
84 $ SET FILE/PROT=W:RE WRK_SSLXLIB:'E'.EXE