From a4b07dbaa2408eb5611db0789245742c2de8104f Mon Sep 17 00:00:00 2001 From: Zack Hobson Date: Sun, 5 Feb 2017 16:02:53 -0800 Subject: Fix manpage install --- Rakefile | 8 ++++---- 1 file 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 -- cgit v1.2.3