diff options
Diffstat (limited to 'misc/brs/files/patch-aa')
-rw-r--r-- | misc/brs/files/patch-aa | 173 |
1 files changed, 135 insertions, 38 deletions
diff --git a/misc/brs/files/patch-aa b/misc/brs/files/patch-aa index 8ea4cda6b904..5969044dcc74 100644 --- a/misc/brs/files/patch-aa +++ b/misc/brs/files/patch-aa @@ -1,38 +1,135 @@ ---- Makefile.orig Wed Jul 12 23:30:36 2000 -+++ Makefile Wed Jul 12 23:32:29 2000 -@@ -46,7 +46,7 @@ - NINSTPKG = $(PROGRAM).pkg - - # where to install this stuff --DEST = /usr -+DEST = $(PREFIX) - #DEST = $(HOME)/local - DESTBIN = $(DEST)/bin - DESTLIB = $(DEST)/lib -@@ -405,23 +405,20 @@ - @if [ $(DESTBIN) != . ]; then \ - ((cd $(DESTBIN);rm -f $(PROGRAM)); \ - cp $(PROGRAM) $(DESTBIN)); \ -- chown bin $(DESTBIN)/$(PROGRAM); \ -- chgrp bin $(DESTBIN)/$(PROGRAM); \ -+ 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 bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \ -- chgrp bin $(DESTLIB)/$(DATA) $(DESTLIB)/$(DATA).conc; \ -+ 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 bin $(DESTMAN1)/$(MAN); \ -- chgrp bin $(DESTMAN1)/$(MAN); \ -+ chown root:wheel $(DESTMAN1)/$(MAN); \ - chmod 644 $(DESTMAN1)/$(MAN); fi - - uninstall:; @echo Un-installing $(PROGRAM), $(DATA) and $(MAN) +*** 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) |