diff options
| author | Zack Hobson | 2017-02-05 17:43:49 -0800 | 
|---|---|---|
| committer | GitHub | 2017-02-05 17:43:49 -0800 | 
| commit | 2575cf4fb3c61b33ecb9dfc94e8c44e0ee28a24a (patch) | |
| tree | 989b324094e8c794818e1062cea563bd3f1f4403 | |
| parent | c439d11044c715e6cd8e610f15ef4fe44058315a (diff) | |
| parent | a4b07dbaa2408eb5611db0789245742c2de8104f (diff) | |
| download | hcl-2575cf4fb3c61b33ecb9dfc94e8c44e0ee28a24a.tar.bz2 | |
Merge pull request #80 from zenhob/fix-manpage-install
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 | 
