Staging
v0.8.1
v0.8.1
https://foss.heptapod.net/mercurial/hgview
Revision ad7836992a0360340c7c0029f965a18964cf5965 authored by David Douard on 04 June 2009, 21:22:26 UTC, committed by David Douard on 04 June 2009, 21:22:26 UTC
This is required so we can install hgview without having to distribute .ui files (and it allows the GUI to be built a little bit quicker).
1 parent 8e0dc8c
Tip revision: ad7836992a0360340c7c0029f965a18964cf5965 authored by David Douard on 04 June 2009, 21:22:26 UTC
Make HgDialogMixin load the form from a python module (named 'form_ui.py') if the 'form.ui' file is not found.
Make HgDialogMixin load the form from a python module (named 'form_ui.py') if the 'form.ui' file is not found.
Tip revision: ad78369
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)
Computing file changes ...