Browse files

build: depend on mfm's asciidoc manpage ruleset

This does the same thing as ours, but is less code for us
(and as a bonus, we can use "binman" to stop duplicating the
list of commands in man.do).
  • Loading branch information...
1 parent 5ccbfd6 commit 8d7f67733402ac31ea0036bf53b6e90b57d6ad52 @peff committed Feb 1, 2012
Showing with 2 additions and 31 deletions.
  1. +2 −0 MFM-RULES
  2. +0 −8 rules/lib-txtdeps.do
  3. +0 −8 rules/man.do
  4. +0 −7 rules/rule.1.do
  5. +0 −3 rules/rule.txt.do
  6. +0 −5 rules/rule.xml.do
View
2 MFM-RULES
@@ -1,4 +1,6 @@
./rules
+doc/asciidoc/man
+doc/binman
shell/install/allbin
c/base
base
View
8 rules/lib-txtdeps.do
@@ -1,8 +0,0 @@
-use File::Basename;
-
-setattr run =>
-sub {
- my $f = shift;
- my $dir = dirname($f); $dir .= '/' if length($dir);
- return grep { s/^include::(.*)\[\]$/$dir$1/ } cat_lines($f);
-}
View
8 rules/man.do
@@ -1,8 +0,0 @@
-my @MAN = map { "Documentation/$_.1" } qw(
-fuzzydups
-fuzzymunge
-);
-
-target;
-priority 15;
-dependon @MAN;
View
7 rules/rule.1.do
@@ -1,7 +0,0 @@
-my $src = replace_ext($TARGET, '1', 'xml');
-
-target;
-dependon $src;
-# XXX we should take care to do this atomically,
-# but xmlto makes this hard
-formake "xmlto -o Documentation man $src"
View
3 rules/rule.txt.do
@@ -1,3 +0,0 @@
-borrow $TARGET;
-push @FILES, $TARGET;
-setattr(txtdeps => run('lib-txtdeps', $TARGET->name));
View
5 rules/rule.xml.do
@@ -1,5 +0,0 @@
-my $src = replace_ext($TARGET, 'xml', 'txt');
-
-target;
-dependon uniq($src, get($src)->getattr_recurse('txtdeps'));
-formake atomic("asciidoc -o - -b docbook -d manpage $src");

0 comments on commit 8d7f677

Please sign in to comment.