summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudwig H?hne <pankrat@tigris.org>2008-08-24 09:40:48 +0000
committerLudwig H?hne <pankrat@tigris.org>2008-08-24 09:40:48 +0000
commit12ca3e2e7ecd800f78bb59c76969969bc9ec907c (patch)
tree63e1896ac2575dbdab16f478bf9dc027f4aa3caf /doc
parent08f69eda12ec73e878f15b9158441a6d707e70e7 (diff)
downloadscons-12ca3e2e7ecd800f78bb59c76969969bc9ec907c.tar.gz
Issue 2151: Enforce building doc PDF and PS with jade
Diffstat (limited to 'doc')
-rw-r--r--doc/SConscript11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/SConscript b/doc/SConscript
index a2174ea3..e33069e1 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -49,7 +49,8 @@ epydoc = whereis('epydoc')
groff = whereis('groff')
lynx = whereis('lynx')
man2html = whereis('man2html')
-jade = whereis('openjade') or whereis('jade')
+jade_original = whereis('jade')
+jade = whereis('openjade') or jade_original
jadetex = whereis('jadetex')
pdfjadetex = whereis('pdfjadetex')
jw = whereis('jw')
@@ -343,10 +344,10 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
src = os.path.join(build, doc, g)
Local(env.Install(htmldir, src))
- if docs[doc].get('ps') and jadetex:
+ if docs[doc].get('ps') and jadetex and jade_original:
env.Command(ps, main, [
Delete("${TARGET.dir}/%s" % out),
- "jw -b ps -o ${TARGET.dir} $SOURCES",
+ "jw -b ps -p %s -o ${TARGET.dir} $SOURCES" % jade_original,
"mv ${TARGET.dir}/main.ps $TARGET",
Delete("${TARGET.dir}/%s" % out),
])
@@ -373,10 +374,10 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
src = os.path.join(build, doc, g)
Local(env.Install(htmldir, src))
- if docs[doc].get('pdf') and pdfjadetex:
+ if docs[doc].get('pdf') and pdfjadetex and jade_original:
env.Command(pdf, main, [
Delete("${TARGET.dir}/%s" % out),
- "jw -b pdf -o ${TARGET.dir} $SOURCES",
+ "jw -b pdf -p %s -o ${TARGET.dir} $SOURCES" % jade_original,
"mv ${TARGET.dir}/main.pdf $TARGET",
Delete("${TARGET.dir}/out"),
])