Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision f20dac18d3ee63f9a594fb35bf1543a978372e35 authored by David Douard on 03 June 2009, 22:29:26 UTC, committed by David Douard on 03 June 2009, 22:29:26 UTC
1 parent d62399a
Tip revision: f20dac18d3ee63f9a594fb35bf1543a978372e35 authored by David Douard on 03 June 2009, 22:29:26 UTC
make sure autoresized colums are not resized with too small or negative values
make sure autoresized colums are not resized with too small or negative values
Tip revision: f20dac1
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)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...