From f41506636325b9b500c64ca2f1de7877927affe1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Mar 2009 12:41:45 -0700 Subject: Force rdoc 2.4.1 to run for me Echoe/Rake seems to be loading the wrong version, tired of fighting it and figuring out what it's doing... --- .document | 10 ++++++++++ GNUmakefile | 6 +++++- Rakefile | 1 - 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .document diff --git a/.document b/.document new file mode 100644 index 0000000..d045955 --- /dev/null +++ b/.document @@ -0,0 +1,10 @@ +README +CHANGELOG +CONTRIBUTORS +LICENSE +TODO +bin +lib +ext/**/*.c +ext/**/*.rl +ext/**/*.h diff --git a/GNUmakefile b/GNUmakefile index 0992767..63a5bd0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -104,4 +104,8 @@ Manifest: cmp $@+ $@ || mv $@+ $@ $(RM) -f $@+ -.PHONY: $(T) $(slow_tests) Manifest +# using rdoc 2.4.1 +doc: .document + rdoc -Na -m README -t "$(shell sed -ne '1s/^= //p' README)" + +.PHONY: doc $(T) $(slow_tests) Manifest diff --git a/Rakefile b/Rakefile index 1f0bb18..bbffdb0 100644 --- a/Rakefile +++ b/Rakefile @@ -13,7 +13,6 @@ Echoe.new("unicorn") do |p| 'site/output', '.config', 'coverage', 'test_*.log', 'log', 'doc'] p.url = "http://unicorn.bogomips.org" - p.rdoc_pattern = ['README', 'LICENSE', 'CONTRIBUTORS', 'CHANGELOG', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc'] p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/ p.need_tar_gz = false p.need_tgz = true -- cgit v1.2.3-24-ge0c7