mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Better rakefile for converting bundles
This commit is contained in:
parent
58733867e8
commit
4d6b4e1956
7
Rakefile
7
Rakefile
@ -23,7 +23,12 @@ end
|
||||
|
||||
desc "convert some textmate bundles to yasnippets"
|
||||
task :convert_bundles do
|
||||
sh 'for bundle in html ruby rails css; do ./extras/textmate_import.rb -d extras/bundles/$bundle-tmbundle -o extras/imported/$bundle-mode -q ; done'
|
||||
Dir.glob "extras/bundles/*-tmbundle" do |bundle_dir|
|
||||
puts "Converting from #{bundle_dir}"
|
||||
mode_prefix = File.basename(bundle_dir).match(/[^-]*/)[0]
|
||||
raise "Couldn't guess mode name for #{bundle_dir}" unless mode_prefix
|
||||
sh "./extras/textmate_import.rb -d #{bundle_dir} -o ./extras/imported/#{mode_prefix}-mode -q"
|
||||
end
|
||||
end
|
||||
|
||||
desc "create a release package"
|
||||
|
Loading…
x
Reference in New Issue
Block a user