Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision a85ff7b3495cf405b74234b90e624a8bb1b09b0c authored by Mads Kiilerich on 25 August 2019, 10:02:53 UTC, committed by Mads Kiilerich on 25 August 2019, 10:02:53 UTC
1 parent effe204
Tip revision: a85ff7b3495cf405b74234b90e624a8bb1b09b0c authored by Mads Kiilerich on 25 August 2019, 10:02:53 UTC
Use the right type when passing revisions to hg ... and avoid using basestring
Use the right type when passing revisions to hg ... and avoid using basestring
Tip revision: a85ff7b
Makefile
SOURCES=hgview.1.txt
#$(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 -o $@ $<
%.html: %.txt
asciidoc -b html4 -o $@ $< || asciidoc -b html -o $@ $<
install: man
for i in $(MAN) ; do \
subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \
$(INSTALL) -d $(DESTDIR)$(MANDIR)/$$subdir && \
$(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \
done
clean:
$(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html)
Computing file changes ...