mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +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"
|
desc "convert some textmate bundles to yasnippets"
|
||||||
task :convert_bundles do
|
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
|
end
|
||||||
|
|
||||||
desc "create a release package"
|
desc "create a release package"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user