Permalink
Browse files

allow crxmake to run in-place

  • Loading branch information...
1 parent 0bae76f commit e869571fd3f502f561feee7259d90d0fb7ae096b @t3rmin4t0r t3rmin4t0r committed Jan 17, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/crxmake
View
@@ -2,7 +2,12 @@
# vim: fileencoding=utf-8
require 'rubygems'
require 'optparse'
-require 'crxmake'
+begin
+ require 'crxmake'
+rescue LoadError
+ # require_relative is 1.9 only
+ require File.expand_path("../../lib/crxmake", __FILE__)
+end
data = {}
usage = <<-EOS

0 comments on commit e869571

Please sign in to comment.