Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 30050b48c693ac7555bc203ab6b6ac26afdbd574 authored by Takumi IINO on 18 June 2012, 07:43:30 UTC, committed by Takumi IINO on 18 June 2012, 07:43:30 UTC
Input ":?[enter]" into footer prompt, raise IndexError: list index out of range.
1 parent b2f4ce0
Raw File
Tip revision: 30050b48c693ac7555bc203ab6b6ac26afdbd574 authored by Takumi IINO on 18 June 2012, 07:43:30 UTC
[tui] help shortcut command raise list index out of range (closes #98677)
Tip revision: 30050b4
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)
back to top