File: fix_example_shebang.patch

package info (click to toggle)
ruby-rmagick 2.13.2-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,620 kB
  • ctags: 1,785
  • sloc: ansic: 16,759; ruby: 9,717; makefile: 14; sh: 14
file content (29 lines) | stat: -rw-r--r-- 782 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: have proper shebangs in example
Author: Cédric Boutillier <boutil@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
 #