Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision a13d9dfe73477485569262ebce6f8e1dd618fa73 authored by Mads Kiilerich on 04 April 2020, 02:09:16 UTC, committed by Mads Kiilerich on 04 April 2020, 02:09:16 UTC
Clarify the role of the Viewer stubs in hgviewlib/application.py . It is a mess
to use multiple inheritance and super() and different parameter profiles in
diferent parent/sibling classes. The empty Viewer stubs should thus not be used
as interfaces / purely virtual base classes; they are just an example and
documentation.
1 parent 4b52201
Raw File
Tip revision: a13d9dfe73477485569262ebce6f8e1dd618fa73 authored by Mads Kiilerich on 04 April 2020, 02:09:16 UTC
qt5: simplify Viewer class hierarchy to work better with multiple inheritance of Qt classes
Tip revision: a13d9df
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)
back to top