summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Hobson2017-02-05 16:02:53 -0800
committerZack Hobson2017-02-05 16:04:11 -0800
commita4b07dbaa2408eb5611db0789245742c2de8104f (patch)
tree989b324094e8c794818e1062cea563bd3f1f4403
parentc439d11044c715e6cd8e610f15ef4fe44058315a (diff)
downloadhcl-a4b07dbaa2408eb5611db0789245742c2de8104f.tar.bz2
Fix manpage install
-rw-r--r--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 9cd7a94..2ce9fa3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,7 @@ task :update_bundle do
system("bundle")
system("git ci -am 'update gemfile.lock'")
end
-task :release => [:update_bundle, :man]
+task :release => [:update_bundle]
require 'fileutils'
task :clean do
@@ -22,7 +22,7 @@ task :default => :test
# process the README into a manual page using ronn
require 'ronn'
-task :man do
+task 'man/hcl.1' do
print "Writing manual page..."
head, content = File.read('README.markdown').split("## SYNOPSIS\n")
content.prepend <<-END
@@ -33,12 +33,12 @@ hcl(1) -- Track time with Harvest time sheets
END
FileUtils.mkdir_p('man')
File.write('man/hcl.1.ronn', content)
- File.open('man/hcl.1','w').tap do |man|
+ File.open('man/hcl.1','w') do |man|
man.write Ronn::Document.new('man/hcl.1.ronn').to_roff
end
puts "done."
end
-task "pkg/hcl-#{HCl::VERSION}.gem" => :man
+task :build => 'man/hcl.1'
require 'yard'
YARD::Rake::YardocTask.new