File: fix-paths.patch

package info (click to toggle)
ruby-shindo 0.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 192 kB
  • ctags: 40
  • sloc: ruby: 457; makefile: 13
file content (30 lines) | stat: -rw-r--r-- 1,162 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
30
Description: executables should take libraries from standard path
Author: Praveen Arimbrathodiyil <praveen@debian.org>
Last-Updated: 2013-05-17

--- a/bin/shindo
+++ b/bin/shindo
@@ -1,8 +1,4 @@
 #!/usr/bin/env ruby
 @thread_locals = { :interactive => true }
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'verbose'))
-if Kernel.respond_to?(:require_relative)
-  require_relative File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-else
-  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-end
+require 'shindo/verbose'
+require 'shindo/bin'
--- a/bin/shindont
+++ b/bin/shindont
@@ -1,8 +1,4 @@
 #!/usr/bin/env ruby
 @thread_locals = { :interactive => false }
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'taciturn'))
-if Kernel.respond_to?(:require_relative)
-  require_relative File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-else
-  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-end
+require 'shindo/taciturn'
+require 'shindo/bin'