doc/Makefile
author mpm@selenic.com
Tue, 28 Jun 2005 02:38:33 -0800
changeset 508 42a660abaf75
parent 465 f8cb8d082d40
child 671 efa4a7e2f322
permissions -rw-r--r--
[PATCH] Harden os.system -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Harden os.system From: Bryan O'Sullivan <bos@serpentine.com> Add util.system function. This is similar to os.system, but will either succeed (if the process finishes with a zero exit code) or raise a util.CommandError (if the process exits uncleanly or is killed by a signal). Add util.explain_exit function. This tends to be ubiquitous in code that calls other processes, and must describe what has gone wrong. Change some uses of os.system over to util.system. manifest hash: e3bf4adcac5b915432ec0af00efdbcef86bea4b1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwSipywK+sNU5EO8RAr0RAJkBDt8XQ7mYQAWNHNgTOVt1eyWU1QCfe1oO 2OwxyWqpbRNACVJHHfZ3/Xw= =OaRX -----END PGP SIGNATURE-----
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
465
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     1
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     2
SOURCES=$(wildcard *.1.txt)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     3
MAN=$(SOURCES:%.1.txt=%.1)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     4
HTML=$(SOURCES:%.1.txt=%.1.html)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     5
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     6
all: man
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     7
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     8
man: $(MAN)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
     9
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    10
html: $(HTML)
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    11
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    12
%.1: %.1.xml
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    13
	xmlto man $*.1.xml
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    14
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    15
%.1.xml: %.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    16
	asciidoc -d manpage -b docbook $*.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    17
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    18
%.1.html: %.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    19
	asciidoc -b html $*.1.txt
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    20
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    21
clean:
f8cb8d082d40 Add a doc makefile
mpm@selenic.com
parents:
diff changeset
    22
	$(RM) $(MAN) $(MAN:%.1=%.1.xml) $(MAN:%.1=%.1.html)