Updated documentation.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@20 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
01eb4a7133
commit
4c27a1c376
12 changed files with 920 additions and 45 deletions
|
|
@ -11,6 +11,12 @@ SKIP_FILES = [ 'layout.conf', '.svn', 'instrset.inc' ]
|
|||
# asciidoc command line
|
||||
ASCIIDOC = 'asciidoc --unsafe --conf-file=${srcdir}/layout.conf -a icons -o ${outfile} ${infile}'
|
||||
|
||||
# specialized ASCIIDOC for certain files
|
||||
# - this is a hack trying to look generic
|
||||
ASCIIDOC_PERFILE = {
|
||||
'userguide.txt': ASCIIDOC.replace('-a icons', '-a icons -a toc')
|
||||
}
|
||||
|
||||
|
||||
def _is_older(inp, outp):
|
||||
older = True
|
||||
|
|
@ -29,7 +35,8 @@ def asciidoc(opts, srcdir, inp, outp):
|
|||
if _is_older(inp, outp) or opts.force:
|
||||
if opts.verbose:
|
||||
print "asciidoc %s -> %s" % (inp, outp)
|
||||
cmd = Template(ASCIIDOC).substitute(srcdir=srcdir, infile=inp, outfile=outp)
|
||||
asciidoc = ASCIIDOC_PERFILE.get(os.path.split(inp)[-1], ASCIIDOC)
|
||||
cmd = Template(asciidoc).substitute(srcdir=srcdir, infile=inp, outfile=outp)
|
||||
if opts.verbose >= 3:
|
||||
print "asciidoc command is [%s]" % cmd
|
||||
if not opts.dryrun:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue