compass/bin/compass
Chris Eppstein b13fd43a2e Require relative to the load path instead of using the more convoluted approach of File.join(File.dirname(__FILE__), ...).
Also, don't ever muck with the load paths or rubygems without first
trying to require the library without doing so.
2009-09-02 21:45:08 -07:00

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!