diff options
| author | Zack Hobson | 2017-02-05 16:02:53 -0800 |
|---|---|---|
| committer | Zack Hobson | 2017-02-05 16:04:11 -0800 |
| commit | a4b07dbaa2408eb5611db0789245742c2de8104f (patch) | |
| tree | 989b324094e8c794818e1062cea563bd3f1f4403 | |
| parent | c439d11044c715e6cd8e610f15ef4fe44058315a (diff) | |
| download | hcl-a4b07dbaa2408eb5611db0789245742c2de8104f.tar.bz2 | |
Fix manpage install
| -rw-r--r-- | Rakefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
