diff options
author | Steven Knight <knight@baldmt.com> | 2001-12-11 02:15:23 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-12-11 02:15:23 (GMT) |
commit | b70f81117b9f3ad39c56b751278c06025f627a3d (patch) | |
tree | 5f08c0710f35900b60542e1c21495a71848c139e /doc/Conscript | |
parent | e526af454042ab567413e88eb22daf2cb19c0c05 (diff) | |
download | SCons-b70f81117b9f3ad39c56b751278c06025f627a3d.zip SCons-b70f81117b9f3ad39c56b751278c06025f627a3d.tar.gz SCons-b70f81117b9f3ad39c56b751278c06025f627a3d.tar.bz2 |
Create a troff man page.
Diffstat (limited to 'doc/Conscript')
-rw-r--r-- | doc/Conscript | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/doc/Conscript b/doc/Conscript index 56a4f4a..7266807 100644 --- a/doc/Conscript +++ b/doc/Conscript @@ -36,7 +36,9 @@ $doc_tar_gz = "#build/dist/scons-doc-${\$env->{VERSION}}.tar.gz"; # We'll only try to build text files (for some documents) # if lynx is available to do the dump. # +$groff = cons::whereis('groff'); $lynx = cons::whereis('lynx'); +$man2html = cons::whereis('man2html'); # # Always create a version.sgml file containing the version information @@ -67,10 +69,6 @@ Ignore("version.sgml"); 'design' => { 'html' => 'book1.html', }, - 'man' => { - 'html' => 'scons.html', - 'text' => 1, - }, 'user' => { 'html' => 'book1.html', }, @@ -154,6 +152,32 @@ foreach $doc (keys %doc_dirs) { } # +# Man page(s), in good ol' troff format. +# +my $scons_1 = "man/scons.1"; + +if ($groff) { + my $ps = "PS/scons-man.ps"; + my $text = "TEXT/scons-man.txt"; + + $env->Command($ps, $scons_1, "groff -man -Tps %< > %>"); + + $env->Command($text, $scons_1, "groff -man -Tascii %< > %>"); + + push(@tar_deps, $ps, $text); + push(@tar_list, $ps, $text); +} + +if ($man2html) { + my $html = "HTML/scons-man.html"; + + $env->Command($html, $scons_1, "man2html %< > %>"); + + push(@tar_deps, $html); + push(@tar_list, $html); +} + +# # Now actually create the tar file of the documentation, # for easy distribution to the web site. # |