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
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"
45 $ write sys$output "Second argument invalid."
46 $ write sys$output "It should be "32", "64", or nothing."
52 $ root = f$parse( p1, "[]A.;0", , , "syntax_only, no_conceal") - "A.;0"
53 $ root_dev = f$parse(root,,,"device","syntax_only")
54 $ root_dir = f$parse(root,,,"directory","syntax_only") - -
55 "[000000." - "][" - "[" - "]"
56 $ root = root_dev + "[" + root_dir
58 $ define /nolog wrk_sslroot 'root'.] /trans=conc
59 $ define /nolog wrk_sslxexe wrk_sslroot:['archd'_exe]
61 $ if f$parse("wrk_sslroot:[000000]") .eqs. "" then -
62 create /directory /log wrk_sslroot:[000000]
63 $ if f$parse("wrk_sslxexe:") .eqs. "" then -
64 create /directory /log wrk_sslxexe:
68 $ exe_dir := [-.'archd'.exe.apps]
74 $ e = f$edit(f$element( i, ",", exe), "trim")
76 $ if e .eqs. "," then goto loop_exe_end
78 $ file = exe_dir+ e+ ".exe"
79 $ if f$search( file) .nes. ""
81 $ copy /protection = w:re 'file' wrk_sslxexe: /log
90 $ copy /protection = w:re ca.com wrk_sslxexe:ca.com /log
91 $ copy /protection = w:re openssl-vms.cnf wrk_sslroot:[000000]openssl.cnf /log
96 $ call deass wrk_sslroot
97 $ call deass wrk_sslxexe
102 $ if (f$trnlnm( p1, "LNM$PROCESS") .nes. "")
104 $ deassign /process 'p1'