Permalink
Browse files

Fix: Resolve symlinks when constructing lib path.

This fix allows TaskJuggler to find its libraries even when run
trough a symlink.
  • Loading branch information...
1 parent 4bbbc90 commit dffdb9584f2f958e06e6741eba4c4de8c7692368 @rku rku committed Oct 16, 2013
Showing with 10 additions and 10 deletions.
  1. +1 −1 bin/tj3
  2. +1 −1 bin/tj3client
  3. +1 −1 bin/tj3d
  4. +1 −1 bin/tj3man
  5. +1 −1 bin/tj3ss_receiver
  6. +1 −1 bin/tj3ss_sender
  7. +1 −1 bin/tj3ts_receiver
  8. +1 −1 bin/tj3ts_sender
  9. +1 −1 bin/tj3ts_summary
  10. +1 −1 bin/tj3webd
View
2 bin/tj3
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3client
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3d
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3man
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3ss_receiver
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3ss_sender
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3ts_receiver
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3ts_sender
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3ts_summary
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)
View
2 bin/tj3webd
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$:.unshift File.join(File.dirname(File.realpath(__FILE__)), '..', 'lib')
require File.basename(__FILE__)

0 comments on commit dffdb95

Please sign in to comment.