From: stevenknight Date: Tue, 12 Feb 2002 18:15:39 +0000 (+0000) Subject: Ignore the version.sgml file when deciding whether to rebuild documentation. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9fb052ab3b3c96edca69c27f8b9432b89c00a67d;p=scons.git Ignore the version.sgml file when deciding whether to rebuild documentation. git-svn-id: http://scons.tigris.org/svn/scons/trunk@256 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/doc/SConscript b/doc/SConscript index c706f1f9..bba48371 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)