diff options
author | Steven Knight <knight@baldmt.com> | 2004-08-17 06:01:13 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-08-17 06:01:13 (GMT) |
commit | 3a04ee14eb94ec69fb9b1e0a8ca5bc2e209cf38c (patch) | |
tree | eb8814a67e9ab6ce8596d013033353f31592d6f5 /doc/SConscript | |
parent | e1dd4cf095ba4e90da77bd69bd7c738937c36585 (diff) | |
download | SCons-3a04ee14eb94ec69fb9b1e0a8ca5bc2e209cf38c.zip SCons-3a04ee14eb94ec69fb9b1e0a8ca5bc2e209cf38c.tar.gz SCons-3a04ee14eb94ec69fb9b1e0a8ca5bc2e209cf38c.tar.bz2 |
Incorporate changes from pre-release reviews.
Diffstat (limited to 'doc/SConscript')
-rw-r--r-- | doc/SConscript | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/doc/SConscript b/doc/SConscript index d33712b..ce5dd6d 100644 --- a/doc/SConscript +++ b/doc/SConscript @@ -144,7 +144,14 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. 'ps' : 1, 'pdf' : 0, 'text' : 0, - 'graphics' : [ 'arch', 'builder', 'job-task', 'node', 'scanner', 'sig' ], + 'graphics' : [ + 'arch.fig', + 'builder.fig', + 'job-task.fig', + 'node.fig', + 'scanner.fig', + 'sig.fig' + ], }, 'reference' : { 'htmlindex' : 'book1.html', @@ -159,6 +166,12 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. 'ps' : 1, 'pdf' : 1, 'text' : 0, + 'graphics' : [ + 'SCons-win32-install-1.jpg', + 'SCons-win32-install-2.jpg', + 'SCons-win32-install-3.jpg', + 'SCons-win32-install-4.jpg', + ], }, } @@ -234,14 +247,17 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. tar_deps.extend([html, htmlindex]) tar_list.extend([html, htmldir]) - if fig2dev: - for g in docs[doc].get('graphics', []): - fig = os.path.join(build, doc, '%s.fig' % g) - jpg = os.path.join(htmldir, '%s.jpg' % g) + for g in docs[doc].get('graphics', []): + if g[-4:] == '.fig' and fig2dev: + fig = os.path.join(build, doc, g) + jpg = os.path.join(htmldir, g[:-4] + '.jpg') env.Command(jpg, fig, "%s -L jpeg -q 100 $SOURCES $TARGET" % fig2dev) env.Depends(html, jpg) Local(jpg) + else: + src = os.path.join(build, doc, g) + Local(env.Install(htmldir, src)) if docs[doc].get('ps') and jadetex: env.Command(ps, main, [ @@ -257,13 +273,16 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. tar_deps.append(ps) tar_list.append(ps) - if fig2dev: - for g in docs[doc].get('graphics', []): - fig = os.path.join(build, doc, '%s.fig' % g) - eps = os.path.join(build, 'PS', '%s.eps' % g) + for g in docs[doc].get('graphics', []): + if g[-4:] == '.fig' and fig2dev: + fig = os.path.join(build, doc, g) + eps = os.path.join(build, 'PS', g[:-4] + '.eps') env.Command(eps, fig, "%s -L eps $SOURCES $TARGET" % fig2dev) env.Depends(ps, eps) Local(eps) + else: + src = os.path.join(build, doc, g) + Local(env.Install(htmldir, src)) if docs[doc].get('pdf') and pdfjadetex: env.Command(pdf, main, [ |