/[escript]/trunk/doc/user/SConscript
ViewVC logotype

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6651 - (hide annotations)
Wed Feb 7 02:12:08 2018 UTC (23 months, 1 week ago) by jfenwick
File size: 3018 byte(s)
Make everyone sad by touching all the files

Copyright dates update

1 ksteube 1811
2 jfenwick 3982 ##############################################################################
3 gross 708 #
4 jfenwick 6651 # Copyright (c) 2003-2018 by The University of Queensland
5 jfenwick 3982 # http://www.uq.edu.au
6 gross 708 #
7 ksteube 1811 # Primary Business: Queensland, Australia
8 jfenwick 6112 # Licensed under the Apache License, version 2.0
9     # http://www.apache.org/licenses/LICENSE-2.0
10 ksteube 1705 #
11 jfenwick 3982 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 # Development 2012-2013 by School of Earth Sciences
13     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 jfenwick 3982 #
15     ##############################################################################
16 ksteube 1705
17 gross 708 import os
18     Import('*')
19 caltinay 3271 local_env = env.Clone(tools=['pdflatex'])
20 gross 708
21 caltinay 3271 tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
22 jfenwick 4669 #fig_src = Glob('figures/*.eps')
23 ksteube 1705
24 jfenwick 4669 figures=Glob('figures/*.png') + Glob('figures/*.pdf')
25 caltinay 3304
26 caltinay 3604 if local_env['pdflatex']:
27 caltinay 3277 if local_env['verbose']:
28     interaction='-interaction=nonstopmode'
29     else:
30     interaction='-interaction=batchmode'
31 gross 708
32 caltinay 3277 # Define command to include SVN revision
33 jfenwick 3343 local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{user.tex}'%(local_env['svn_revision'])])
34     pdf=local_env.PDF(target='user.pdf', source='user.tex')
35 caltinay 3277 Depends(pdf, figures+tex_src)
36 jfenwick 2336
37 jfenwick 3343 pdf_path=os.path.join(release_dir, 'user', 'user.pdf')
38 caltinay 3452 # Work around an issue in SCons v1.0 where the list returned by env.PDF
39     # has too many elements
40     import SCons
41     scons_major_ver=int(SCons.__version__.split('.')[0])
42     if scons_major_ver>1:
43     pdf_inst=local_env.InstallAs(target=pdf_path, source=pdf)
44     else:
45     pdf_inst=local_env.InstallAs(target=pdf_path, source='user.pdf')
46 jfenwick 3343 env.Alias('user_pdf', pdf_inst)
47 caltinay 3277 else:
48 caltinay 3604 env.Alias('user_pdf', '', '@echo "Not building user\'s guide: PDF output not supported!"')
49 jfenwick 3343 env.AlwaysBuild('user_pdf')
50 jfenwick 2336
51 caltinay 3304 # html version
52     #html_dir=os.path.join(release_dir,'user','html')
53     #html=local_env.Command(Dir(html_dir), tex_src+fig_src,
54     # [Delete(Dir('html')),
55     # Copy(Dir('html'), '${SOURCE.srcdir}'),
56     # Delete(Dir('html/figures')),
57     # Copy(Dir('html/figures'), Dir('figures')),
58     # #Delete(html_dir),
59     # Mkdir(html_dir),
60     # "cd %s && latex2html -top_navigation \
61     # -bottom_navigation \
62     # -index_in_navigation \
63     # -contents_in_navigation \
64     # -next_page_in_navigation \
65     # -previous_page_in_navigation \
66     # -title \"esys users guide\" \
67     # -noshow_section_numbers \
68     # -dir %s -mkdir \
69     # -address \"esys@esscc.uq.edu.au\" \
70     # -antialias_text -antialias -transparent \
71     # -noshort_extn \
72     # -up_url \"https://launchpad.net/escript-finley\" \
73     # -up_title \"escript\" guide.tex"%(Dir('html').abspath,html_dir)])
74     #env.Alias('guide_html', [figures,html])
75     #env.AlwaysBuild(Dir(html_dir))
76 jfenwick 2338

  ViewVC Help
Powered by ViewVC 1.1.26