Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6725 | siemargl | 1 | |
2 | |||
3 | |||
4 | description files for MMS or MMK. Both methods must be run from |
||
5 | the main directory, not the [.VMS] subdirectory. |
||
6 | |||
7 | |||
8 | @ [.VMS]BUILD_UNZIP.COM |
||
9 | |||
10 | |||
11 | MMS /DESCRIP = [.VMS]DESCRIP.MMS ! Or, with MMK, ... |
||
12 | MMK /DESCRIP = [.VMS]DESCRIP.MMS |
||
13 | |||
14 | |||
15 | the main builder file, either BUILD_UNZIP.COM or DESCRIP.MMS. |
||
16 | |||
17 | |||
18 | |||
19 | |||
20 | |||
21 | |||
22 | or: |
||
23 | MMS /DESC = [.VMS] /MACRO = LARGE=1 |
||
24 | |||
25 | |||
26 | |||
27 | |||
28 | @ [.VMS]BUILD_UNZIP LARGE LINK |
||
29 | or |
||
30 | MMK /DESC = [.VMS] CLEAN_EXE ! Deletes existing executables. |
||
31 | MMK /DESC = [.VMS] ! Builds new executables. |
||
32 | MMK /DESC = [.VMS] /MACRO = LARGE=1 CLEAN_EXE |
||
33 | MMK /DESC = [.VMS] /MACRO = LARGE=1 |
||
34 | |||
35 | |||
36 | compiler listings and link maps: |
||
37 | |||
38 | |||
39 | MMS /DESC = [.VMS] /MACRO = (DBG=1, LARGE=1. LIST=1) |
||
40 | |||
41 | |||
42 | compilers, DEC/Compaq/HP C, VAX C, or GNU C. If DEC/Compaq/HP C is |
||
43 | not available or not desired, comments in the relevant builder file |
||
44 | explain the command-line options used to select a different |
||
45 | compiler. |
||
46 | |||
47 | |||
48 | method. To add support for the optional "bzip2" compression method, |
||
49 | first obtain and build the bzip2 software (http://www.bzip.org/ or, |
||
50 | for a more VMS-friendly kit, http://antinode.info/dec/sw/bzip2.html). |
||
51 | Then, define the macro IZ_BZIP2 on the BUILD_UNZIP.COM or MMS/MMK |
||
52 | command line to specify the directory where the bzip2 files may be |
||
53 | found. For example: |
||
54 | |||
55 | |||
56 | IZ_BZIP2=SYS$SYSDEVICE:[UTILITY.SOURCE.BZIP2.BZIP2-1_0_4B_VMS] |
||
57 | or: |
||
58 | MMS /DESC = [.VMS] /MACRO = (LARGE=1, - |
||
59 | IZ_BZIP2=SYS$SYSDEVICE:[UTILITY.SOURCE.BZIP2.BZIP2-1_0_4B_VMS]) |
||
60 | |||
61 | |||
62 | compiler option, /NAMES = UPPERCASE, while bzip2 is normally built |
||
63 | with /NAMES = AS_IS, to avoid name collisions. With modern |
||
64 | compilers, the "#pragma names" directives in [.VMS]BZLIB.H will |
||
65 | handle these differences without user intervention. An old |
||
66 | compiler (for example, DEC C V4.0-000) will emit complaints |
||
67 | %CC-I-UNKNOWNPRAGMA, and will mishandle the bzip2 library function |
||
68 | names, which will cause the link to fail. To solve this problem, |
||
69 | either build the bzip2 BZ_NO_STDIO object library with /NAMES = |
||
70 | UPPERCASE, or else build UnZip with /NAMES = AS_IS. For example: |
||
71 | |||
72 | |||
73 | IZ_BZIP2=SYS$SYSDEVICE:[UTILITY.SOURCE.BZIP2.BZIP2-1_0_4B_VMS] |
||
74 | or: |
||
75 | MMS /DESC = [.VMS] /MACRO = (LARGE=1, "CCOPTS=/NAMES=AS_IS", - |
||
76 | IZ_BZIP2=SYS$SYSDEVICE:[UTILITY.SOURCE.BZIP2.BZIP2-1_0_4B_VMS]) |
||
77 | |||
78 | |||
79 | are placed in separate directories, such as [.ALPHA], [.IA64], or |
||
80 | [.VAX]. Large-file products get their own directories, [.ALPHAL] |
||
81 | or [.IA64L]. On VAX, VAX C products are placed in [.VAXV], GNU C |
||
82 | products in [.VAXG]. Each product builder announces what the |
||
83 | destination directory will be when it is run. |
||
84 | |||
85 | |||
86 | UNIX-like command-line interface, UNZIP_CLI.HLP for the VMS-like |
||
87 | command-line interface), are placed in the main directory. With a |
||
88 | mixed-architecture VMS cluster, the same main directory on a shared |
||
89 | disk may may be used by all system types. (Using the NOHELP option |
||
90 | with BUILD_UNZIP.COM can keep it from making the same help files |
||
91 | repeatedly.) Building the help files is detailed below. |
||
92 | |||
93 | |||
94 | |||
95 | |||
96 | or moved (or copied) to a convenient place. While other methods |
||
97 | (like DCL$PATH) exist, most users define symbols to make the UnZip |
||
98 | executables available as foreign commands. These symbol definitions |
||
99 | may be placed in a user's SYS$LOGIN:LOGIN.COM, or in a more central |
||
100 | location, like SYS$MANAGER:SYLOGIN.COM. Typical symbol definitions |
||
101 | might look like these: |
||
102 | |||
103 | |||
104 | or: |
||
105 | UNZIP :== $ dev:[dir]UNZIP_CLI.EXE ! VMS-like command line. |
||
106 | |||
107 | |||
108 | small-file and large-file programs. For example: |
||
109 | |||
110 | |||
111 | UNZIP*L :== $ dev:[dir.ALPHAL]UNZIP.EXE !UNZIP[L] = large-file UnZip. |
||
112 | |||
113 | |||
114 | These may be incorporated into an existing help library, or a separate |
||
115 | UnZip help library may be created using commands like these, using |
||
116 | either UNZIP.HLP (as shown) or UNZIP_CLI.HLP: |
||
117 | |||
118 | |||
119 | |||
120 | |||
121 | |||
122 | |||
123 | using a command like: |
||
124 | |||
125 | |||
126 | |||
127 | |||
128 | HLP$LIBRARY logical name to allow the HELP utility to find the UnZip |
||
129 | help library automatically. See HELP HELP /USERLIBRARY for more |
||
130 | details. The command procedure HLP_LIB_NEXT.COM may be used to |
||
131 | determine the next available HLP$LIBRARY logical name, and could be |
||
132 | adapted to define a HLP$LIBRARY logical name for a UnZip help library. |
||
133 | |||
134 | |||
135 | destination directory with the program executables. A user may |
||
136 | gain DCL access to the UnZip error messages using a command like: |
||
137 | |||
138 | |||
139 | |||
140 | |||
141 | file to SYS$MESSAGE, although this could cause some confusion if |
||
142 | multiple versions of UnZip are used on the system, and their error |
||
143 | message source files differ. |
||
144 |