summaryrefslogblamecommitdiff
path: root/misc/brs/files/patch-aa
blob: 5969044dcc748c8a9e3f27af472b2ee1cb9b0561 (plain) (tree)






































































































































                                                                                           
*** 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)