1 $! INSTALL-SSL.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
7 $! P2 "64" for 64-bit pointers.
12 $ proc = f$environment( "procedure")
13 $ write sys$output "@@@ "+ -
14 f$parse( proc, , , "name")+ f$parse( proc, , , "type")
16 $ on error then goto tidy
17 $ on control_c then goto tidy
21 $ write sys$output "First argument missing."
23 "It should be the directory where you want things installed."
27 $ if (f$getsyi( "cpu") .lt. 128)
31 $ arch = f$edit( f$getsyi( "arch_name"), "upcase")
32 $ if (arch .eqs. "") then arch = "UNK"
49 $ write sys$output "Second argument invalid."
50 $ write sys$output "It should be "32", "64", or nothing."
56 $ root = f$parse( p1, "[]A.;0", , , "syntax_only, no_conceal") - "A.;0"
57 $ root_dev = f$parse(root,,,"device","syntax_only")
58 $ root_dir = f$parse(root,,,"directory","syntax_only") - -
59 "[000000." - "][" - "[" - "]"
60 $ root = root_dev + "[" + root_dir
62 $ define /nolog wrk_sslroot 'root'.] /trans=conc
63 $ define /nolog wrk_sslinclude wrk_sslroot:[include]
64 $ define /nolog wrk_sslxlib wrk_sslroot:['arch'_lib]
66 $ if f$parse("wrk_sslroot:[000000]") .eqs. "" then -
67 create /directory /log wrk_sslroot:[000000]
68 $ if f$parse("wrk_sslinclude:") .eqs. "" then -
69 create /directory /log wrk_sslinclude:
70 $ if f$parse("wrk_sslxlib:") .eqs. "" then -
71 create /directory /log wrk_sslxlib:
73 $ exheader := ssl.h, ssl2.h, ssl3.h, tls1.h, dtls1.h, srtp.h
76 $ xexe_dir := [-.'archd'.exe.ssl]
78 $ copy /protection = w:re 'exheader' wrk_sslinclude: /log
82 $ e = f$edit(f$element(i, ",", libs),"trim")
84 $ if e .eqs. "," then goto loop_lib_end
87 $ file = xexe_dir+ e+ lib32+ ".olb"
88 $ if f$search( file) .nes. ""
90 $ copy /protection = w:re 'file' wrk_sslxlib: /log
93 $ file = xexe_dir+ e+ shr+ ".exe"
94 $ if f$search( file) .nes. ""
96 $ copy /protection = w:re 'file' wrk_sslxlib: /log
104 $ call deass wrk_sslroot
105 $ call deass wrk_sslinclude
106 $ call deass wrk_sslxlib
111 $ if (f$trnlnm( p1, "LNM$PROCESS") .nes. "")
113 $ deassign /process 'p1'