Sha256: e3101ac0f40d9a8398d2f25508d76f3def45ee62d90ae51b148b815ff5b37b61
Contents?: true
Size: 677 Bytes
Versions: 7
Compression:
Stored size: 677 Bytes
Contents
task :default => 'man/chake.1' file 'man/chake.1' => ['man/chake.adoc'] do sh 'asciidoctor --backend manpage --out-file man/chake.1 man/chake.adoc' end file 'man/chake.adoc' => ['README.md', 'man/readme2man.sed'] do |t| sh "sed -f man/readme2man.sed README.md > #{t.name} || (rm -f #{t.name}; false)" end task :install => 'man/chake.1' do prefix = ENV['PREFIX'] || File.exists?('debian/rules') && '/usr' || '/usr/local' target = [ENV["DESTDIR"], prefix , 'share/man/man1'].compact man = File.join(*target) sh 'install', '-d', '-m', '0755', man sh 'install', '-m', '0644', 'man/chake.1', man end task :clean do rm_f 'man/chake.1' rm_f 'man/chake.adoc' end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
chake-0.21.2 | man/Rakefile |
chake-0.21.1 | man/Rakefile |
chake-0.21 | man/Rakefile |
chake-0.20 | man/Rakefile |
chake-0.19 | man/Rakefile |
chake-0.18 | man/Rakefile |
chake-0.17.1 | man/Rakefile |