[DRE-commits] [ruby-state-machine] 02/07: run yard and install examples
Cédric Boutillier
boutil at moszumanska.debian.org
Wed Apr 16 13:30:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-state-machine.
commit 7d15e2cf72fee03d48f45397c3d008e72e87a072
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Apr 16 13:52:39 2014 +0200
run yard and install examples
---
debian/ruby-state-machine.examples | 4 +---
debian/rules | 13 +++++++++----
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/debian/ruby-state-machine.examples b/debian/ruby-state-machine.examples
index d970cc8..e39721e 100644
--- a/debian/ruby-state-machine.examples
+++ b/debian/ruby-state-machine.examples
@@ -1,3 +1 @@
-# FIXME: examples/ dir found in source. Consider installing the examples.
-# Examples:
-# examples/*
+examples/*
diff --git a/debian/rules b/debian/rules
index 9b25bc9..4090866 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,5 @@
#!/usr/bin/make -f
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
#
# Uncomment to ignore all test failures (but the tests will run anyway)
#export DH_RUBY_IGNORE_TESTS=all
@@ -17,9 +17,14 @@
override_dh_auto_install:
dh_auto_install
# delete integration files for unpackaged setups
- rm -rf debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/data_mapper*
- rm -rf debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/mongo*
+ $(RM) -r debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/data_mapper*
+ $(RM) -r debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/mongo*
override_dh_auto_clean:
dh_auto_clean
- rm -f test/*.log
+ $(RM) test/*.log
+ $(RM) -r examples/.yardoc examples/doc
+
+override_dh_installexamples:
+ (cd examples; yardoc -e ../lib/yard-state_machine.rb .)
+ dh_installexamples -O--buildsystem=ruby
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-state-machine.git
More information about the Pkg-ruby-extras-commits
mailing list