b13fd43a2e
Also, don't ever muck with the load paths or rubygems without first trying to require the library without doing so.
20 lines
330 B
Ruby
Executable File
20 lines
330 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# The compass command line utility
|
|
|
|
begin
|
|
retried = false
|
|
require 'compass'
|
|
require 'compass/exec'
|
|
rescue LoadError
|
|
if retried
|
|
raise
|
|
else
|
|
$: << File.join(File.dirname(__FILE__), '..', 'lib')
|
|
retried = true
|
|
retry
|
|
end
|
|
end
|
|
|
|
command = Compass::Exec::Compass.new(ARGV)
|
|
exit command.run!
|