summaryrefslogtreecommitdiff
path: root/misc/brs/files/patch-aa
blob: 5969044dcc748c8a9e3f27af472b2ee1cb9b0561 (plain) (blame)
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
*** Makefile.orig	Wed Aug  9 18:49:09 1995
--- Makefile	Thu Jul 10 22:40:43 2003
***************
*** 177,185 ****
  # primary man page
  MAN	      = $(PROGRAM).1
  
- # raw data file
- RAWDATA	      = $(PROGRAM).rawtext
- 
  # Derived data file.  Comes from processing raw data file.
  DATA	      = $(PROGRAM).data
  
--- 177,182 ----
***************
*** 187,198 ****
  NINSTPKG      = $(PROGRAM).pkg
  
  # where to install this stuff
! DEST	      = /usr/local
  #DEST	      = $(HOME)/local
  DESTBIN	      = $(DEST)/bin
! DESTLIB       = $(DEST)/lib
  DESTMAN	      = $(DEST)/man
! DESTMAN1      = $(DESTMAN)/man1.Z
  
  # release directories.  Nobody should care about this but me
  FTPHOME	      = /mnt/ftp
--- 184,195 ----
  NINSTPKG      = $(PROGRAM).pkg
  
  # where to install this stuff
! DEST	      = $(PREFIX)
  #DEST	      = $(HOME)/local
  DESTBIN	      = $(DEST)/bin
! DESTLIB       = $(DEST)/share/brs
  DESTMAN	      = $(DEST)/man
! DESTMAN1      = $(DESTMAN)/man1
  
  # release directories.  Nobody should care about this but me
  FTPHOME	      = /mnt/ftp
***************
*** 349,358 ****
  		else	rm squish.tmpdata squish.stats; fi
  		
  
- $(PROGINDEX).c:	$(RAWDATA)
- 		make makeindex
- 		./makeindex $(RAWDATA) > $@
- 
  $(DATA):	squish.stats squish.data
  		make buildcmp
  		./buildcmp
--- 346,351 ----
***************
*** 366,384 ****
  # Note that $(PROGINDEX).c is included in source distributions, while 
  # $(RAWDATA) is NOT included in all distributions.  $(PROGINDEX).c does NOT 
  # need to be rebuilt unless someone (probably me) has munged $(RAWDATA).
- SAFEDATE = 0101000193
- $(RAWDATA):
- 		@touch $(SAFEDATE) $@
- 		@if [ -r $(SAFEDATE) ]; then \
- 			/bin/rm $(SAFEDATE) $@; \
- 			if [ -x /usr/5bin/touch ]; then \
- 				/usr/5bin/touch $(SAFEDATE) $@; \
- 			else \
- 				# major kludge alert! ... \
- 				touch brl-startverse.h brl-startchapter.h $(PROGINDEX).c; \
- 			fi; \
- 		fi
- 		@echo "  A dummy $(RAWDATA) file has been created."
  
  # The dependency on $(RAWDATA) helps to ensure that the raw concordance file
  # is not rebuilt unnecessarily.
--- 359,364 ----
***************
*** 392,401 ****
  		./makeconc.pl
  #		./makeconcordance
  
- $(MAN).Z:	$(MAN)
- 		/bin/rm $@
- 		compress < $(MAN) > $(MAN).Z
- 
  clean:;		@rm -f $(PROGOBJS) $(TOOLOBJS) core
  
  clobber:;	@rm -f $(PROGOBJS) $(TOOLOBJS) $(PROGRAM) $(TOOLS) $(DATA) \
--- 372,377 ----
***************
*** 543,565 ****
  		@if [ $(DESTBIN) != . ]; then \
  		((cd $(DESTBIN);rm -f $(PROGRAM)); \
  		cp $(PROGRAM) $(DESTBIN)); \
! 		chown bin $(DESTBIN)/$(PROGRAM); \
! 		chgrp bin $(DESTBIN)/$(PROGRAM); \
  		chmod 755 $(DESTBIN)/$(PROGRAM); fi
  		@echo Installing $(DATA) and $(DATA).conc in $(DESTLIB)
  		@if [ ! -r $(DESTLIB) ]; then mkdir $(DESTLIB); fi
  		@if [ $(DESTLIB) != . ]; then \
  		cp $(DATA) $(DATA).conc $(DESTLIB); \
! 		chown bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
! 		chgrp bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
  		chmod 644 $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; fi
  		@if [ ! -r $(DESTMAN) ]; then mkdir $(DESTMAN); fi
  		@echo Installing $(MAN) in $(DESTMAN1)
  		@if [ ! -r $(DESTMAN1) ]; then mkdir $(DESTMAN1); fi
  		@if [ $(DESTMAN1) != . ]; then \
! 		cp $(MAN).Z $(DESTMAN1)/$(MAN); \
! 		chown bin $(DESTMAN1)/$(MAN); \
! 		chgrp bin $(DESTMAN1)/$(MAN); \
  		chmod 644 $(DESTMAN1)/$(MAN); fi
  
  uninstall:;	@echo Un-installing $(PROGRAM), $(DATA) and $(MAN)
--- 519,538 ----
  		@if [ $(DESTBIN) != . ]; then \
  		((cd $(DESTBIN);rm -f $(PROGRAM)); \
  		cp $(PROGRAM) $(DESTBIN)); \
! 		chown root:wheel $(DESTBIN)/$(PROGRAM); \
  		chmod 755 $(DESTBIN)/$(PROGRAM); fi
  		@echo Installing $(DATA) and $(DATA).conc in $(DESTLIB)
  		@if [ ! -r $(DESTLIB) ]; then mkdir $(DESTLIB); fi
  		@if [ $(DESTLIB) != . ]; then \
  		cp $(DATA) $(DATA).conc $(DESTLIB); \
! 		chown root:wheel $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \
  		chmod 644 $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; fi
  		@if [ ! -r $(DESTMAN) ]; then mkdir $(DESTMAN); fi
  		@echo Installing $(MAN) in $(DESTMAN1)
  		@if [ ! -r $(DESTMAN1) ]; then mkdir $(DESTMAN1); fi
  		@if [ $(DESTMAN1) != . ]; then \
! 		cp $(MAN) $(DESTMAN1)/$(MAN); \
! 		chown root:wheel $(DESTMAN1)/$(MAN); \
  		chmod 644 $(DESTMAN1)/$(MAN); fi
  
  uninstall:;	@echo Un-installing $(PROGRAM), $(DATA) and $(MAN)