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'
|