File: dh_ruby.rake

package info (click to toggle)
itamae 1.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 536 kB
  • sloc: ruby: 4,137; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'asciidoctor'

MANPAGE_PATH = 'debian/itamae.1'
ADOC_PATH = MANPAGE_PATH + '.adoc'

task :default do
  Asciidoctor.render_file(
    ADOC_PATH, backend: 'manpage', doctype: 'manpage', in_place: true
  )
end
task :install do
  # dh_installman does the work here
end
task :clean do
  File.unlink(MANPAGE_PATH) if File.exist?(MANPAGE_PATH)
end