Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 1f0cff108a03ebec7e4c939b6d12d95b8534adf9 authored by Pierre-Yves David on 23 November 2010, 17:04:11 UTC, committed by Pierre-Yves David on 23 November 2010, 17:04:11 UTC
"default" and "stable" alway use the same color. Color of other named
branch are choose from alphabetical order instead of index order.
1 parent c552645
Raw File
Tip revision: 1f0cff108a03ebec7e4c939b6d12d95b8534adf9 authored by Pierre-Yves David on 23 November 2010, 17:04:11 UTC
Stabilise named branch color
Tip revision: 1f0cff1
Makefile
SOURCES=$(wildcard *.[0-9].txt)
MAN=$(SOURCES:%.txt=%)
HTML=$(SOURCES:%.txt=%.html)
PREFIX=/usr/local
MANDIR=$(PREFIX)/man
INSTALL=install -c

all: man html

man: $(MAN)

html: $(HTML)

%: %.xml
	xmlto man $*.xml

%.xml: %.txt
	asciidoc -d manpage -b docbook $*.txt

%.html: %.txt
	asciidoc -b html4 $*.txt || asciidoc -b html $*.txt

install: man
	for i in $(MAN) ; do \
	  subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
	  mkdir -p $(MANDIR)/$$subdir ; \
	  $(INSTALL) $$i $(MANDIR)/$$subdir ; \
	done

clean:
	$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
back to top