diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-25 00:12:23 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-25 00:15:07 +0000 |
commit | 7a00d725015534bb551c7f97952af4b9a9367332 (patch) | |
tree | 7b3c0209839b847957ee8591f3976344cd980c8c /Rakefile | |
parent | 6c197ba96877164d2e89ee1f1cc74d15a34af6e1 (diff) | |
download | dtas-7a00d725015534bb551c7f97952af4b9a9367332.tar.gz |
This may make lives easier for users without pandoc.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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| |