[mkfor] add "exos" target and make it possible to specify built targets as cmd line arguments

authorDavid Douard <david.douard@logilab.fr>
changesetb4b0ffb84589
branchdefault
phasepublic
hiddenno
parent revision#a3cece728832 fix makeindex being called at the wrong moment with wrong arguments (closes: #82702)
child revision#a2dd6bff607c Updating copyright date and dependencies
files modified by this revision
bin/mkfor
# HG changeset patch
# User David Douard <david.douard@logilab.fr>
# Date 1326643810 -3600
# Sun Jan 15 17:10:10 2012 +0100
# Node ID b4b0ffb8458998ab9bfa1fd451d8c48f9c3edf1e
# Parent a3cece72883252a4fd28a414fbec51ce20f773e9
[mkfor] add "exos" target and make it possible to specify built targets as cmd line arguments

diff --git a/bin/mkfor b/bin/mkfor
@@ -40,15 +40,18 @@
1      flags = '-interaction nonstopmode -halt-on-error -file-line-error'
2 
3      return PdfTex(texinputs, flags)
4 
5  if __name__ == '__main__':
6 +    import sys
7      try:
8          if set(sys.argv) & set(['-h', '--help']):
9              raise ExitException('usage: mkfor manuel.tex|slides.tex|page-de-garde.tex')
10          pdftex = mk_pdftex()
11 -        targets = ['page-de-garde', 'slides', 'manuel']
12 +        targets = ['page-de-garde', 'slides', 'manuel', 'exos']
13 +        if len(sys.argv) > 1:
14 +            targets = sys.argv[1:]
15          for target in targets:
16              pdftex(target, clean=True)
17              print
18      except (TransformException, ExitException), exc:
19          print "\n"