Fixed the --imports command-line option so that it generates useful output for being passed to sass. E.g.:

sass `compass --imports` some_file.sass
This commit is contained in:
Chris Eppstein 2008-12-02 15:48:22 -08:00
parent e2ec3873c3
commit 31370e20d8
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Chris Eppstein"]
s.date = %q{2008-12-01}
s.date = %q{2008-12-02}
s.default_executable = %q{compass}
s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.}
s.email = %q{chris@eppsteins.net}

View File

@ -130,7 +130,7 @@ END
opts.on('--imports', :NONE, 'Emit an import path suitable for use with the Sass command-line tool.') do
#XXX cross platform support?
print ::Compass::Frameworks::ALL.map{|f| f.stylesheets_directory}.join(File::PATH_SEPARATOR)
print ::Compass::Frameworks::ALL.map{|f| "-I #{f.stylesheets_directory}"}.join(' ')
exit
end