groff = whereis('groff')
lynx = whereis('lynx')
man2html = whereis('man2html')
+jade = whereis('jade')
+jadetex = whereis('jadetex')
+pdfjadetex = whereis('pdfjadetex')
jw = whereis('jw')
tidy = whereis('tidy')
if s:
File(main).scanner_set(s)
- if docs[doc].get('html'):
+ if docs[doc].get('html') and jade:
cmds = [
"rm -f ${TARGET.dir}/*.html",
"jw -b html -o ${TARGET.dir} $SOURCES",
"%s -L jpeg -q 100 $SOURCES $TARGET" % fig2dev)
env.Depends(ps, jpg)
- if docs[doc].get('ps'):
+ if docs[doc].get('ps') and jadetex:
env.Command(ps, main, [
"rm -f ${TARGET.dir}/%s" % out,
"jw -b ps -o ${TARGET.dir} $SOURCES",
env.Command(eps, fig, "%s -L eps $SOURCES $TARGET" % fig2dev)
env.Depends(ps, eps)
- if docs[doc].get('pdf'):
+ if docs[doc].get('pdf') and pdfjadetex:
env.Command(pdf, main, [
"rm -f ${TARGET.dir}/%s" % out,
"jw -b pdf -o ${TARGET.dir} $SOURCES",
tar_deps.append(pdf)
tar_list = tar_list + " " + pdf
- if docs[doc].get('text') and lynx:
+ if docs[doc].get('text') and jade and lynx:
env.Command(text, html, "lynx -dump ${SOURCE.abspath} > $TARGET")
env.Ignore(text, "version.sgml")