aboutsummaryrefslogtreecommitdiffstats
path: root/tool/extlibs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/extlibs.rb')
-rwxr-xr-xtool/extlibs.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb
index c6c6d0cf65..5d1a2db143 100755
--- a/tool/extlibs.rb
+++ b/tool/extlibs.rb
@@ -5,9 +5,19 @@
require 'digest'
require_relative 'downloader'
-require_relative 'lib/colorize'
+begin
+ require_relative 'lib/colorize'
+rescue LoadError
+end
class ExtLibs
+ unless defined?(Colorize)
+ class Colorize
+ def pass(str) str; end
+ def fail(str) str; end
+ end
+ end
+
class Vars < Hash
def pattern
/\$\((#{Regexp.union(keys)})\)/