summaryrefslogtreecommitdiffstats
path: root/doc/SConscript
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-02-12 18:15:39 (GMT)
committerSteven Knight <knight@baldmt.com>2002-02-12 18:15:39 (GMT)
commit7818f10ff90b339e2be92c706694fcc0c237f34c (patch)
tree9514aaa50c5da7a2f255dd85c11cf4d059eee6f9 /doc/SConscript
parent086e9978d885063b51d99d674971288e159635b5 (diff)
downloadSCons-7818f10ff90b339e2be92c706694fcc0c237f34c.zip
SCons-7818f10ff90b339e2be92c706694fcc0c237f34c.tar.gz
SCons-7818f10ff90b339e2be92c706694fcc0c237f34c.tar.bz2
Ignore the version.sgml file when deciding whether to rebuild documentation.
Diffstat (limited to 'doc/SConscript')
-rw-r--r--doc/SConscript20
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/SConscript b/doc/SConscript
index c706f1f..bba4837 100644
--- a/doc/SConscript
+++ b/doc/SConscript
@@ -182,7 +182,13 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
"mv -v ${TARGET.dir}/index.html $TARGET || true",
])
- env.Command(html, main, "jw -u -b html $SOURCES > $TARGET")
+ env.Command(html, main, [
+ "rm -f ${TARGET.dir}/main.html",
+ "jw -u -b html -o ${TARGET.dir} $SOURCES",
+ "mv -v ${TARGET.dir}/main.html $TARGET || true",
+ ])
+
+ env.Ignore([html, htmlindex], "version.sgml")
tar_deps.extend([html, htmlindex])
tar_list = string.join([tar_list, html, htmldir], " ")
@@ -202,8 +208,12 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
"mv ${TARGET.dir}/main.ps $TARGET",
"rm -f ${TARGET.dir}/%s" % out,
])
+
+ env.Ignore(ps, "version.sgml")
+
tar_deps.append(ps)
tar_list = tar_list + " " + ps
+
if fig2dev:
for g in docs[doc].get('graphics', []):
fig = os.path.join(doc, '%s.fig' % g)
@@ -218,11 +228,17 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT.
"mv ${TARGET.dir}/main.pdf $TARGET",
"rm -f ${TARGET.dir}/out",
])
+
+ env.Ignore(pdf, "version.sgml")
+
tar_deps.append(pdf)
tar_list = tar_list + " " + pdf
if docs[doc].get('text') and lynx:
env.Command(text, html, "lynx -dump ${SOURCE.abspath} > $TARGET")
+
+ env.Ignore(text, "version.sgml")
+
tar_deps.append(text)
tar_list = tar_list + " " + text
@@ -255,4 +271,4 @@ if man2html:
# for easy distribution to the web site.
#
env.Command(doc_tar_gz, tar_deps,
- "tar zchv -f $TARGET -C build/doc %s" % tar_list)
+ "tar zch -f $TARGET -C build/doc %s" % tar_list)