"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], " ")
"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)
"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
# 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)