[DRE-commits] [ruby-rmagick] 04/07: Fix shebangs for examples
Cédric Boutillier
boutil at moszumanska.debian.org
Wed Jan 15 17:40:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-rmagick.
commit 34d5a3e7d78d4bafcb89dd0542c027e422d249fe
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Jan 15 17:11:12 2014 +0100
Fix shebangs for examples
---
debian/changelog | 1 +
debian/patches/fix_example_shebang.patch | 29 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6404e00..579ed0b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ ruby-rmagick (2.13.2-2) unstable; urgency=low
* Kill transitional packages
* Depend on ruby instead of ruby1.8
* Bump Standards-Version to 3.9.5 (no changes needed)
+ * Fix shebangs for examples
-- Cédric Boutillier <boutil at debian.org> Wed, 15 Jan 2014 16:35:23 +0100
diff --git a/debian/patches/fix_example_shebang.patch b/debian/patches/fix_example_shebang.patch
new file mode 100644
index 0000000..73a3661
--- /dev/null
+++ b/debian/patches/fix_example_shebang.patch
@@ -0,0 +1,29 @@
+Description: have proper shebangs in example
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-01-15
+Forwarded: no
+
+--- a/examples/constitute.rb
++++ b/examples/constitute.rb
+@@ -1,4 +1,4 @@
+-#! /usr/local/bin/ruby -w
++#! /usr/bin/env ruby
+ require 'RMagick'
+
+ f = Magick::Image.read(File.join(File.dirname(__FILE__), "../doc/ex/images/Flower_Hat.jpg")).first
+--- a/examples/crop_with_gravity.rb
++++ b/examples/crop_with_gravity.rb
+@@ -1,4 +1,4 @@
+-#! /usr/local/bin/ruby -w
++#! /usr/bin/env ruby
+
+ #=======================================================#
+ # Thanks to Robert Wagner for the idea of allowing a #
+--- a/examples/demo.rb
++++ b/examples/demo.rb
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/env ruby
+ #
+ # Simple demo program for RMagick
+ #
diff --git a/debian/patches/series b/debian/patches/series
index fbbf4c1..2bc36c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ buid-samples-unconditionally.diff
relative_paths_on_examples
disable-version-check.diff
fail-on-doc-failure.dpatch
+fix_example_shebang.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rmagick.git
More information about the Pkg-ruby-extras-commits
mailing list