man
author Bayard Bell <buffer.g.overflow@gmail.com>
Mon, 17 Oct 2011 21:30:04 +0100
changeset 0 c86b2b393e56
permissions -rw-r--r--
Initial import of code provided by Alasdairrr and aszeszo

install:	$(INSTALL_32)
	@echo Generating manpages...
	@$(MKDIR) $(PROTOUSRSHAREMAN1DIR) $(PROTOUSRSHAREMAN3DIR)
	@for manpage in `cd Solaris/manpages; echo */*`; do \
	    $(SGML2ROFF) Solaris/manpages/$$manpage > \
	    $(PROTOUSRSHAREMANDIR)/$$manpage; \
	    grep "<!--ARC" Solaris/manpages/$$manpage | awk '{ \
		idx1 = index($$0, "ARC "); \
		idx2 = index($$0, "-->"); \
		if (idx1 > 0 && idx2 > 0) { \
		    print "...\\\" " substr($$0, idx1+6, idx2-(idx1+6)); \
		} \
	    }' >> $(PROTOUSRSHAREMANDIR)/$$manpage; \
	done
	@$(MKDIR) $(PROTOUSRSHAREDOCDIR)/SUNWavant
	for i in COPYING.LIB COPYING ChangeLog NEWS; do \
	    bzip2 -c $(COMPONENT_SRC)/$$i >$(PROTOUSRSHAREDOCDIR)/SUNWavant/$$i.bz2; \
	done
	@$(CP) $(COMPONENT_SRC)/AUTHORS $(COMPONENT_SRC)/README \
	    $(PROTOUSRSHAREDOCDIR)/SUNWavant