source: trunk/essentials/app-arch/gzip/vms/makegzip.com

Last change on this file was 3325, checked in by bird, 18 years ago

gzip 1.3.11

File size: 2.4 KB
Line 
1$! Makefile for VMS
2$! DCL-Shell-language. Edit the symbols section at the end.
3$!
4$ On Control_Y Then Goto The_Exit
5$ On Error Then Goto The_Exit
6$ define/user sys sys$library
7$ cc gzip.c /define=(VAXC)
8$ define/user sys sys$library
9$ cc zip.c /define=(VAXC)
10$ define/user sys sys$library
11$ cc deflate.c /define=(VAXC)
12$ define/user sys sys$library
13$ cc trees.c /define=(VAXC)
14$ define/user sys sys$library
15$ cc bits.c /define=(VAXC)
16$ define/user sys sys$library
17$ cc unzip.c /define=(VAXC)
18$ define/user sys sys$library
19$ cc inflate.c /define=(VAXC)
20$ define/user sys sys$library
21$ cc util.c /define=(VAXC)
22$ define/user sys sys$library
23$ cc crypt.c /define=(VAXC)
24$ define/user sys sys$library
25$ cc lzw.c /define=(VAXC)
26$ define/user sys sys$library
27$ cc unlzw.c /define=(VAXC)
28$ define/user sys sys$library
29$ cc unpack.c /define=(VAXC)
30$ define/user sys sys$library
31$ cc unlzh.c /define=(VAXC)
32$ define/user sys sys$library
33$ cc getopt.c /define=(VAXC)
34$ define/user sys sys$library
35$ cc vms.c /define=(VAXC)
36$ linkobjs:=gzip.obj zip.obj deflate.obj trees.obj bits.obj unzip.obj -
37 inflate.obj util.obj crypt.obj lzw.obj unlzw.obj unpack.obj unlzh.obj -
38 getopt.obj vms.obj
39$ Schleife:
40$ p = f$locate(" ",linkobjs)
41$ if p .lt. f$length(linkobjs)
42$ then linkobjs[p,1]:=","
43$ goto Schleife
44$ endif
45$ write sys$output "linking ''linkobjs'"
46$ link /exec=gzip.exe 'linkobjs',sys$input/opt
47SYS$LIBRARY:VAXCRTL/SHARE
48$
49$ ! Create a hard link. (To remove both files, delete the copy FIRST, then
50$ ! the original. Otherwise, if original deleted first [copy says "no such
51$ ! file"], must use "set file/remove gunzip.exe;#" to get rid of the copy.
52$ ! Unlike in Unix, deleting the original ALWAYS destroys the data--but not
53$ ! the directory entry of the copy.) Using a hard link saves disk space, by
54$ ! the way. Note, however, that copying a hard link copies the data, not
55$ ! just the link. Therefore, set up the link in the directory in which the
56$ ! executable is to reside, or else rename (move) the executables into the
57$ ! directory.
58$ !
59$ set file/enter=gunzip.exe gzip.exe
60$ set file/enter=zcat.exe gzip.exe
61$
62$ ! Set up symbols for the gzip executable. Edit the example below,
63$ ! changing "disk:[directory]" as appropriate.
64$ !
65$ gzip == "$disk:[directory]gzip.exe"
66$ gunzip == "$disk:[directory]gunzip.exe"
67$ zcat == "$disk:[directory]zcat.exe"
68$
69$The_Exit:
70$ Save_Status = $STATUS
71$ exit Save_Status
Note: See TracBrowser for help on using the repository browser.