Staging
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 58fe577e6bd8cd5ecfb121f5dc062e17f938c587 authored by Pierre-Yves David on 02 May 2012, 08:04:09 UTC, committed by Pierre-Yves David on 02 May 2012, 08:04:09 UTC
Hgview displayed nonsense when repo was reloaded in the middle of an Hg operation.

Hg writting operations lock the repo. So, we donnot reload repo data until the
lock is released.
1 parent b657f7a
Raw File
Tip revision: 58fe577e6bd8cd5ecfb121f5dc062e17f938c587 authored by Pierre-Yves David on 02 May 2012, 08:04:09 UTC
Do not reload data from locked repository (closes #92297)
Tip revision: 58fe577
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