Fix for ticket #55: if phonegap source was on a path with "bin" in it would cause major fail.

This commit is contained in:
Fil Maj 2011-01-24 15:51:26 -08:00
parent 726f1094d9
commit 9354b429f3

View File

@ -1,5 +1,5 @@
#!/usr/bin/env ruby
ROOT = File.expand_path(File.dirname(__FILE__).gsub('bin',''))
ROOT = File.expand_path(File.dirname(__FILE__).gsub(/bin$/,''))
require 'fileutils'
require File.join(ROOT, "lib", "generate.rb")
require File.join(ROOT, "lib", "classic.rb")