install.com 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. $! INSTALL.COM -- Installs the files in a given directory tree
  2. $!
  3. $! Author: Richard Levitte <richard@levitte.org>
  4. $! Time of creation: 22-MAY-1998 10:13
  5. $!
  6. $! P1 root of the directory tree
  7. $!
  8. $ IF P1 .EQS. ""
  9. $ THEN
  10. $ WRITE SYS$OUTPUT "First argument missing."
  11. $ WRITE SYS$OUTPUT "Should be the directory where you want things installed."
  12. $ EXIT
  13. $ ENDIF
  14. $
  15. $ ROOT = F$PARSE(P1,"[]A.;0",,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0"
  16. $ ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY")
  17. $ ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") -
  18. - "[000000." - "][" - "[" - "]"
  19. $ ROOT = ROOT_DEV + "[" + ROOT_DIR
  20. $
  21. $ DEFINE/NOLOG WRK_SSLROOT 'ROOT'.] /TRANS=CONC
  22. $ DEFINE/NOLOG WRK_SSLVLIB WRK_SSLROOT:[VAX_LIB]
  23. $ DEFINE/NOLOG WRK_SSLALIB WRK_SSLROOT:[ALPHA_LIB]
  24. $ DEFINE/NOLOG WRK_SSLINCLUDE WRK_SSLROOT:[INCLUDE]
  25. $
  26. $ IF F$PARSE("WRK_SSLROOT:[000000]") .EQS. "" THEN -
  27. CREATE/DIR/LOG WRK_SSLROOT:[000000]
  28. $ IF F$PARSE("WRK_SSLVLIB:") .EQS. "" THEN -
  29. CREATE/DIR/LOG WRK_SSLVLIB:
  30. $ IF F$PARSE("WRK_SSLALIB:") .EQS. "" THEN -
  31. CREATE/DIR/LOG WRK_SSLALIB:
  32. $ IF F$PARSE("WRK_SSLINCLUDE:") .EQS. "" THEN -
  33. CREATE/DIR/LOG WRK_SSLINCLUDE:
  34. $
  35. $ SDIRS := ,-
  36. OBJECTS,-
  37. MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,WHRLPOOL,-
  38. DES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,-
  39. BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,AES,-
  40. BUFFER,BIO,STACK,LHASH,RAND,ERR,-
  41. EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,-
  42. UI,KRB5,-
  43. STORE,CMS,PQUEUE,TS
  44. $ EXHEADER_ := crypto.h,tmdiff.h,opensslv.h,opensslconf.h,ebcdic.h,-
  45. symhacks.h,ossl_typ.h
  46. $ EXHEADER_OBJECTS := objects.h,obj_mac.h
  47. $ EXHEADER_MD2 := md2.h
  48. $ EXHEADER_MD4 := md4.h
  49. $ EXHEADER_MD5 := md5.h
  50. $ EXHEADER_SHA := sha.h
  51. $ EXHEADER_MDC2 := mdc2.h
  52. $ EXHEADER_HMAC := hmac.h
  53. $ EXHEADER_RIPEMD := ripemd.h
  54. $ EXHEADER_WHRLPOOL := whrlpool.h
  55. $ EXHEADER_DES := des.h,des_old.h
  56. $ EXHEADER_RC2 := rc2.h
  57. $ EXHEADER_RC4 := rc4.h
  58. $ EXHEADER_RC5 := rc5.h
  59. $ EXHEADER_IDEA := idea.h
  60. $ EXHEADER_BF := blowfish.h
  61. $ EXHEADER_CAST := cast.h
  62. $ EXHEADER_CAMELLIA := camellia.h
  63. $ EXHEADER_SEED := seed.h
  64. $ EXHEADER_BN := bn.h
  65. $ EXHEADER_EC := ec.h
  66. $ EXHEADER_RSA := rsa.h
  67. $ EXHEADER_DSA := dsa.h
  68. $ EXHEADER_ECDSA := ecdsa.h
  69. $ EXHEADER_DH := dh.h
  70. $ EXHEADER_ECDH := ecdh.h
  71. $ EXHEADER_DSO := dso.h
  72. $ EXHEADER_ENGINE := engine.h
  73. $ EXHEADER_AES := aes.h
  74. $ EXHEADER_BUFFER := buffer.h
  75. $ EXHEADER_BIO := bio.h
  76. $ EXHEADER_STACK := stack.h,safestack.h
  77. $ EXHEADER_LHASH := lhash.h
  78. $ EXHEADER_RAND := rand.h
  79. $ EXHEADER_ERR := err.h
  80. $ EXHEADER_EVP := evp.h
  81. $ EXHEADER_ASN1 := asn1.h,asn1_mac.h,asn1t.h
  82. $ EXHEADER_PEM := pem.h,pem2.h
  83. $ EXHEADER_X509 := x509.h,x509_vfy.h
  84. $ EXHEADER_X509V3 := x509v3.h
  85. $ EXHEADER_CONF := conf.h,conf_api.h
  86. $ EXHEADER_TXT_DB := txt_db.h
  87. $ EXHEADER_PKCS7 := pkcs7.h
  88. $ EXHEADER_PKCS12 := pkcs12.h
  89. $ EXHEADER_COMP := comp.h
  90. $ EXHEADER_OCSP := ocsp.h
  91. $ EXHEADER_UI := ui.h,ui_compat.h
  92. $ EXHEADER_KRB5 := krb5_asn.h
  93. $! EXHEADER_STORE := store.h,str_compat.h
  94. $ EXHEADER_STORE := store.h
  95. $ EXHEADER_CMS := cms.h
  96. $ EXHEADER_PQUEUE := pqueue.h
  97. $ EXHEADER_TS := ts.h
  98. $ LIBS := LIBCRYPTO
  99. $
  100. $ VEXE_DIR := [-.VAX.EXE.CRYPTO]
  101. $ AEXE_DIR := [-.AXP.EXE.CRYPTO]
  102. $
  103. $ I = 0
  104. $ LOOP_SDIRS:
  105. $ D = F$EDIT(F$ELEMENT(I, ",", SDIRS),"TRIM")
  106. $ I = I + 1
  107. $ IF D .EQS. "," THEN GOTO LOOP_SDIRS_END
  108. $ tmp = EXHEADER_'D'
  109. $ IF D .EQS. ""
  110. $ THEN
  111. $ COPY 'tmp' WRK_SSLINCLUDE: /LOG
  112. $ ELSE
  113. $ COPY [.'D']'tmp' WRK_SSLINCLUDE: /LOG
  114. $ ENDIF
  115. $ SET FILE/PROT=WORLD:RE WRK_SSLINCLUDE:'tmp'
  116. $ GOTO LOOP_SDIRS
  117. $ LOOP_SDIRS_END:
  118. $
  119. $ I = 0
  120. $ LOOP_LIB:
  121. $ E = F$EDIT(F$ELEMENT(I, ",", LIBS),"TRIM")
  122. $ I = I + 1
  123. $ IF E .EQS. "," THEN GOTO LOOP_LIB_END
  124. $ SET NOON
  125. $ IF F$SEARCH(VEXE_DIR+E+".OLB") .NES. ""
  126. $ THEN
  127. $ COPY 'VEXE_DIR''E'.OLB WRK_SSLVLIB:'E'.OLB/log
  128. $ SET FILE/PROT=W:RE WRK_SSLVLIB:'E'.OLB
  129. $ ENDIF
  130. $ ! Preparing for the time when we have shareable images
  131. $ IF F$SEARCH(VEXE_DIR+E+".EXE") .NES. ""
  132. $ THEN
  133. $ COPY 'VEXE_DIR''E'.EXE WRK_SSLVLIB:'E'.EXE/log
  134. $ SET FILE/PROT=W:RE WRK_SSLVLIB:'E'.EXE
  135. $ ENDIF
  136. $ IF F$SEARCH(AEXE_DIR+E+".OLB") .NES. ""
  137. $ THEN
  138. $ COPY 'AEXE_DIR''E'.OLB WRK_SSLALIB:'E'.OLB/log
  139. $ SET FILE/PROT=W:RE WRK_SSLALIB:'E'.OLB
  140. $ ENDIF
  141. $ ! Preparing for the time when we have shareable images
  142. $ IF F$SEARCH(AEXE_DIR+E+".EXE") .NES. ""
  143. $ THEN
  144. $ COPY 'AEXE_DIR''E'.EXE WRK_SSLALIB:'E'.EXE/log
  145. $ SET FILE/PROT=W:RE WRK_SSLALIB:'E'.EXE
  146. $ ENDIF
  147. $ SET ON
  148. $ GOTO LOOP_LIB
  149. $ LOOP_LIB_END:
  150. $
  151. $ EXIT