From 7a00d725015534bb551c7f97952af4b9a9367332 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 00:12:23 +0000 Subject: build: include prebuilt manpages with installation This may make lives easier for users without pandoc. --- Rakefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index f4d4a69..660b194 100644 --- a/Rakefile +++ b/Rakefile @@ -6,6 +6,20 @@ if ! File.exist?(manifest) || File.stat(manifest).mtime < gitidx.mtime File.open(manifest, "a") do |fp| fp.puts "NEWS" fp.puts "lib/dtas/version.rb" + + if system("make -C Documentation") + require 'fileutils' + FileUtils.rm_rf 'man' + if system("make -C Documentation install-man") + `git ls-files -o man`.split(/\n/).each do |man| + fp.puts man + end + else + warn "failed to install manpages for distribution" + end + else + warn "failed to build manpages for distribution" + end end File.open("NEWS", "w") do |fp| `git tag -l`.split(/\n/).each do |tag| -- cgit v1.2.3-24-ge0c7