Commit 95266c28 authored by Cédric Boutillier's avatar Cédric Boutillier

Adapt the way manual is built

parent eccdc89e
#!/usr/bin/ruby
puts 'Building manual...'
require File.expand_path(File.join(__dir__, %w[.. manual contents]))
prawn_manual_document.render_file(File.join(__dir__, %w[.. manual.pdf]))
puts 'The Prawn manual is available at manual.pdf. Happy Prawning!'
......@@ -16,7 +16,7 @@ override_dh_auto_install:
mkdir -p debian/ruby-prawn/usr/share/ruby-prawn
cp -R data/* debian/ruby-prawn/usr/share/ruby-prawn
dh_auto_install
ruby -I "debian/ruby-prawn/usr/lib/ruby/vendor_ruby" manual/contents.rb
ruby -I "debian/ruby-prawn/usr/lib/ruby/vendor_ruby" debian/make-manual.rb
# remove the copy of data in debian/ruby-prawn (will be reinstalled by dh_install)
rm -rf debian/ruby-prawn/usr/share/ruby-prawn
......@@ -24,6 +24,7 @@ override_dh_auto_clean:
# remove the copy of spec/data in data/
rm -rf data/spec
rm -f manual.pdf
rm -f Type\ 3.pdf Type\ 3\ with\ transparency.pdf
dh_auto_clean
get-orig-source:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment