1*ebfedea0SLionel Sambuc$! INSTALL-SSL.COM -- Installs the files in a given directory tree 2*ebfedea0SLionel Sambuc$! 3*ebfedea0SLionel Sambuc$! Author: Richard Levitte <richard@levitte.org> 4*ebfedea0SLionel Sambuc$! Time of creation: 22-MAY-1998 10:13 5*ebfedea0SLionel Sambuc$! 6*ebfedea0SLionel Sambuc$! P1 root of the directory tree 7*ebfedea0SLionel Sambuc$! P2 "64" for 64-bit pointers. 8*ebfedea0SLionel Sambuc$! 9*ebfedea0SLionel Sambuc$! 10*ebfedea0SLionel Sambuc$! Announce/identify. 11*ebfedea0SLionel Sambuc$! 12*ebfedea0SLionel Sambuc$ proc = f$environment( "procedure") 13*ebfedea0SLionel Sambuc$ write sys$output "@@@ "+ - 14*ebfedea0SLionel Sambuc f$parse( proc, , , "name")+ f$parse( proc, , , "type") 15*ebfedea0SLionel Sambuc$! 16*ebfedea0SLionel Sambuc$ on error then goto tidy 17*ebfedea0SLionel Sambuc$ on control_c then goto tidy 18*ebfedea0SLionel Sambuc$! 19*ebfedea0SLionel Sambuc$ if p1 .eqs. "" 20*ebfedea0SLionel Sambuc$ then 21*ebfedea0SLionel Sambuc$ write sys$output "First argument missing." 22*ebfedea0SLionel Sambuc$ write sys$output - 23*ebfedea0SLionel Sambuc "It should be the directory where you want things installed." 24*ebfedea0SLionel Sambuc$ exit 25*ebfedea0SLionel Sambuc$ endif 26*ebfedea0SLionel Sambuc$! 27*ebfedea0SLionel Sambuc$ if (f$getsyi( "cpu") .lt. 128) 28*ebfedea0SLionel Sambuc$ then 29*ebfedea0SLionel Sambuc$ arch = "VAX" 30*ebfedea0SLionel Sambuc$ else 31*ebfedea0SLionel Sambuc$ arch = f$edit( f$getsyi( "arch_name"), "upcase") 32*ebfedea0SLionel Sambuc$ if (arch .eqs. "") then arch = "UNK" 33*ebfedea0SLionel Sambuc$ endif 34*ebfedea0SLionel Sambuc$! 35*ebfedea0SLionel Sambuc$ archd = arch 36*ebfedea0SLionel Sambuc$ lib32 = "32" 37*ebfedea0SLionel Sambuc$ shr = "_SHR32" 38*ebfedea0SLionel Sambuc$! 39*ebfedea0SLionel Sambuc$ if (p2 .nes. "") 40*ebfedea0SLionel Sambuc$ then 41*ebfedea0SLionel Sambuc$ if (p2 .eqs. "64") 42*ebfedea0SLionel Sambuc$ then 43*ebfedea0SLionel Sambuc$ archd = arch+ "_64" 44*ebfedea0SLionel Sambuc$ lib32 = "" 45*ebfedea0SLionel Sambuc$ shr = "_SHR" 46*ebfedea0SLionel Sambuc$ else 47*ebfedea0SLionel Sambuc$ if (p2 .nes. "32") 48*ebfedea0SLionel Sambuc$ then 49*ebfedea0SLionel Sambuc$ write sys$output "Second argument invalid." 50*ebfedea0SLionel Sambuc$ write sys$output "It should be "32", "64", or nothing." 51*ebfedea0SLionel Sambuc$ exit 52*ebfedea0SLionel Sambuc$ endif 53*ebfedea0SLionel Sambuc$ endif 54*ebfedea0SLionel Sambuc$ endif 55*ebfedea0SLionel Sambuc$! 56*ebfedea0SLionel Sambuc$ root = f$parse( p1, "[]A.;0", , , "syntax_only, no_conceal") - "A.;0" 57*ebfedea0SLionel Sambuc$ root_dev = f$parse(root,,,"device","syntax_only") 58*ebfedea0SLionel Sambuc$ root_dir = f$parse(root,,,"directory","syntax_only") - - 59*ebfedea0SLionel Sambuc "[000000." - "][" - "[" - "]" 60*ebfedea0SLionel Sambuc$ root = root_dev + "[" + root_dir 61*ebfedea0SLionel Sambuc$! 62*ebfedea0SLionel Sambuc$ define /nolog wrk_sslroot 'root'.] /trans=conc 63*ebfedea0SLionel Sambuc$ define /nolog wrk_sslinclude wrk_sslroot:[include] 64*ebfedea0SLionel Sambuc$ define /nolog wrk_sslxexe wrk_sslroot:['archd'_exe] 65*ebfedea0SLionel Sambuc$ define /nolog wrk_sslxlib wrk_sslroot:['arch'_lib] 66*ebfedea0SLionel Sambuc$! 67*ebfedea0SLionel Sambuc$ if f$parse("wrk_sslroot:[000000]") .eqs. "" then - 68*ebfedea0SLionel Sambuc create /directory /log wrk_sslroot:[000000] 69*ebfedea0SLionel Sambuc$ if f$parse("wrk_sslinclude:") .eqs. "" then - 70*ebfedea0SLionel Sambuc create /directory /log wrk_sslinclude: 71*ebfedea0SLionel Sambuc$ if f$parse("wrk_sslxexe:") .eqs. "" then - 72*ebfedea0SLionel Sambuc create /directory /log wrk_sslxexe: 73*ebfedea0SLionel Sambuc$ if f$parse("wrk_sslxlib:") .eqs. "" then - 74*ebfedea0SLionel Sambuc create /directory /log wrk_sslxlib: 75*ebfedea0SLionel Sambuc$! 76*ebfedea0SLionel Sambuc$ exheader := ssl.h, ssl2.h, ssl3.h, ssl23.h, tls1.h, dtls1.h, kssl.h, srtp.h 77*ebfedea0SLionel Sambuc$ e_exe := ssl_task 78*ebfedea0SLionel Sambuc$ libs := ssl_libssl 79*ebfedea0SLionel Sambuc$! 80*ebfedea0SLionel Sambuc$ xexe_dir := [-.'archd'.exe.ssl] 81*ebfedea0SLionel Sambuc$! 82*ebfedea0SLionel Sambuc$ copy /protection = w:re 'exheader' wrk_sslinclude: /log 83*ebfedea0SLionel Sambuc$! 84*ebfedea0SLionel Sambuc$ i = 0 85*ebfedea0SLionel Sambuc$ loop_exe: 86*ebfedea0SLionel Sambuc$ e = f$edit( f$element( i, ",", e_exe), "trim") 87*ebfedea0SLionel Sambuc$ i = i + 1 88*ebfedea0SLionel Sambuc$ if e .eqs. "," then goto loop_exe_end 89*ebfedea0SLionel Sambuc$ set noon 90*ebfedea0SLionel Sambuc$ file = xexe_dir+ e+ ".exe" 91*ebfedea0SLionel Sambuc$ if f$search( file) .nes. "" 92*ebfedea0SLionel Sambuc$ then 93*ebfedea0SLionel Sambuc$ copy /protection = w:re 'file' wrk_sslxexe: /log 94*ebfedea0SLionel Sambuc$ endif 95*ebfedea0SLionel Sambuc$ set on 96*ebfedea0SLionel Sambuc$ goto loop_exe 97*ebfedea0SLionel Sambuc$ loop_exe_end: 98*ebfedea0SLionel Sambuc$! 99*ebfedea0SLionel Sambuc$ i = 0 100*ebfedea0SLionel Sambuc$ loop_lib: 101*ebfedea0SLionel Sambuc$ e = f$edit(f$element(i, ",", libs),"trim") 102*ebfedea0SLionel Sambuc$ i = i + 1 103*ebfedea0SLionel Sambuc$ if e .eqs. "," then goto loop_lib_end 104*ebfedea0SLionel Sambuc$ set noon 105*ebfedea0SLionel Sambuc$! Object library. 106*ebfedea0SLionel Sambuc$ file = xexe_dir+ e+ lib32+ ".olb" 107*ebfedea0SLionel Sambuc$ if f$search( file) .nes. "" 108*ebfedea0SLionel Sambuc$ then 109*ebfedea0SLionel Sambuc$ copy /protection = w:re 'file' wrk_sslxlib: /log 110*ebfedea0SLionel Sambuc$ endif 111*ebfedea0SLionel Sambuc$! Shareable image. 112*ebfedea0SLionel Sambuc$ file = xexe_dir+ e+ shr+ ".exe" 113*ebfedea0SLionel Sambuc$ if f$search( file) .nes. "" 114*ebfedea0SLionel Sambuc$ then 115*ebfedea0SLionel Sambuc$ copy /protection = w:re 'file' wrk_sslxlib: /log 116*ebfedea0SLionel Sambuc$ endif 117*ebfedea0SLionel Sambuc$ set on 118*ebfedea0SLionel Sambuc$ goto loop_lib 119*ebfedea0SLionel Sambuc$ loop_lib_end: 120*ebfedea0SLionel Sambuc$! 121*ebfedea0SLionel Sambuc$ tidy: 122*ebfedea0SLionel Sambuc$! 123*ebfedea0SLionel Sambuc$ call deass wrk_sslroot 124*ebfedea0SLionel Sambuc$ call deass wrk_sslinclude 125*ebfedea0SLionel Sambuc$ call deass wrk_sslxexe 126*ebfedea0SLionel Sambuc$ call deass wrk_sslxlib 127*ebfedea0SLionel Sambuc$! 128*ebfedea0SLionel Sambuc$ exit 129*ebfedea0SLionel Sambuc$! 130*ebfedea0SLionel Sambuc$ deass: subroutine 131*ebfedea0SLionel Sambuc$ if (f$trnlnm( p1, "LNM$PROCESS") .nes. "") 132*ebfedea0SLionel Sambuc$ then 133*ebfedea0SLionel Sambuc$ deassign /process 'p1' 134*ebfedea0SLionel Sambuc$ endif 135*ebfedea0SLionel Sambuc$ endsubroutine 136*ebfedea0SLionel Sambuc$! 137