blob: 88f1ace3bd4625a7ed5c6583d9d73db9d2cfda08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
#=======================================================================
# Makefile for bibsort, a BibTeX bibliography file sort utility.
#
# Current target list:
#
# all make documentation files
# bibsort.hlp VAX VMS HELP file of manual pages
# bibsort.shar UNIX shar bundle for e-mail distribution
# bibsort.tar UNIX tar archive bundle
# bibsort.txt ASCII text file of manual pages
# bibsort.zip Info-ZIP archive bundle
# bibsort.zoo Zoo archive bundle
# clean remove temporary files
# clobber remove all automatically recreatable files
# install install bibsort on system
# install.time installation time stamp
# install-ftp install bibsort on anonymous ftp directory
# install-ftp.time installation time stamp
# test-version test extraction of version number
# uninstall remove installed executable and man pages
# uninstall-ftp remove installed files in anonymous ftp
# directory
#
# [19-Oct-1992]
#=======================================================================
# Change these two directories to match local conventions if you
# wish to do "make install" and "make install-ftp":
BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1
MANEXT = 1
FTPDIR = /usr/spool/ftp/pub/tex/bib
# Need new awk (nawk) or gawk here:
AWK = nawk
CHMOD = chmod
COL = col -b
COMPRESS = compress
CP = /bin/cp
DIST-FILES = README Makefile bibsort.man bibsort.hlp bibsort.sh \
bibsort.txt rofvms.awk
LN = ln -s
NROFF = nroff
RM = /bin/rm -f
SHELL = /bin/sh
UNZIP = unzip
VERSION = `$(AWK) '/^\#\#\#[ \t]*version *= *"[0-9.]+", *$$/ \
{ gsub(/[^0-9.]/,"",$$4); print $$4 }' bibsort.sh`
ZIP = zip
ZOO = zoo
#=======================================================================
all: bibsort.txt bibsort.hlp
# VAX VMS help file format from bibsort.txt
bibsort.hlp: bibsort.txt rofvms.awk
$(AWK) -f rofvms.awk <bibsort.txt >bibsort.hlp
bibsort.shar: $(DIST-FILES)
shar -b -c -v $(DIST-FILES) >bibsort.shar
bibsort.tar: $(DIST-FILES)
-$(RM) bibsort.tar bibsort.tar-lst
tar chf bibsort.tar $(DIST-FILES)
-mkdir bibsort-$(VERSION)
cd bibsort-$(VERSION); tar xf ../bibsort.tar
tar cf bibsort-$(VERSION).tar bibsort-$(VERSION)
-$(RM) -r bibsort-$(VERSION)
-$(RM) bibsort.tar
$(LN) bibsort-$(VERSION).tar bibsort.tar
bibsort.txt: bibsort.man
$(NROFF) -man $? | $(COL) >$@
bibsort.zip: $(DIST-FILES)
-$(RM) bibsort*.zip
-$(RM) bibsort*.zip-lst
$(ZIP) bibsort-$(VERSION).zip $(DIST-FILES)
$(UNZIP) -v bibsort-$(VERSION).zip >bibsort-$(VERSION).zip-lst
$(LN) bibsort-$(VERSION).zip bibsort.zip
bibsort.zoo: $(DIST-FILES)
-$(RM) bibsort*.zoo
-$(RM) bibsort*.zoo-lst
$(ZOO) a bibsort-$(VERSION).zoo $(DIST-FILES)
$(ZOO) v bibsort-$(VERSION).zoo >bibsort-$(VERSION).zoo-lst
$(LN) bibsort-$(VERSION).zoo bibsort.zoo
clean:
-$(RM) *.o
-$(RM) *.shar
-$(RM) *.tar
-$(RM) *.tar-lst
-$(RM) *.zip
-$(RM) *.zip-lst
-$(RM) *.zoo
-$(RM) *.zoo-lst
-$(RM) *~
-$(RM) \#*
-$(RM) core
clobber: clean
-$(RM) bibsort.hlp
-$(RM) bibsort.txt
-$(RM) install.time install-ftp.time
install: install.time
install.time: bibsort.sh bibsort.man
$(CP) bibsort.sh $(BINDIR)/bibsort
$(CHMOD) 755 $(BINDIR)/bibsort
$(CP) bibsort.man $(MANDIR)/bibsort.$(MANEXT)
$(CHMOD) 644 $(MANDIR)/bibsort.$(MANEXT)
touch install.time
install-ftp: install-ftp.time
install-ftp.time: bibsort.tar bibsort.zip bibsort.zoo
tar tvf bibsort-$(VERSION).tar >$(FTPDIR)/bibsort-$(VERSION).tar-lst
$(COMPRESS) <bibsort-$(VERSION).tar \
>$(FTPDIR)/bibsort-$(VERSION).tar.z
$(CP) bibsort-$(VERSION).zip $(FTPDIR)
$(CP) bibsort-$(VERSION).zip-lst $(FTPDIR)
$(CP) bibsort-$(VERSION).zoo $(FTPDIR)
$(CP) bibsort-$(VERSION).zoo-lst $(FTPDIR)
ls -l $(FTPDIR)/bibsort*
date >install-ftp.time
test-version:
@echo "Version number is ""'"$(VERSION)"'"
uninstall:
-$(RM) $(BINDIR)/bibsort $(MANDIR)/bibsort.$(MANEXT)
-$(RM) install.time
uninstall-ftp:
-$(RM) $(FTPDIR)/bibsort-$(VERSION).tar
-$(RM) $(FTPDIR)/bibsort-$(VERSION).tar-lst
-$(RM) $(FTPDIR)/bibsort-$(VERSION).zip
-$(RM) $(FTPDIR)/bibsort-$(VERSION).zip-lst
-$(RM) $(FTPDIR)/bibsort-$(VERSION).zoo
-$(RM) $(FTPDIR)/bibsort-$(VERSION).zoo-lst
-$(RM) install-ftp.time
|