Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 92fd4416cd8d841bfce74ab9ed42d9747a903842 authored by Mads Kiilerich on 24 August 2019, 16:10:16 UTC, committed by Mads Kiilerich on 24 August 2019, 16:10:16 UTC
Needed for Python 3, works with Python 2.
1 parent 2bc4760
Tip revision: 92fd4416cd8d841bfce74ab9ed42d9747a903842 authored by Mads Kiilerich on 24 August 2019, 16:10:16 UTC
Use unicode output_encoding when rendering help text
Use unicode output_encoding when rendering help text
Tip revision: 92fd441
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 ...