File tree 2 files changed +4
-13
lines changed
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,11 @@ MRuby::Gem::Specification.new('mruby-compiler2') do |spec|
31
31
prism_templates_dir = "#{ lib_dir } /prism/templates"
32
32
cc . include_paths << "#{ prism_dir } /include"
33
33
34
- task :deep_clean do
35
- rm_rf prism_dir
36
- end
37
-
38
34
next if %w( clean deep_clean ) . include? ( Rake . application . top_level_tasks . first )
39
35
40
36
directory prism_dir do
41
- FileUtils . cd lib_dir do
42
- sh "git clone https://github.com/ruby/prism.git"
43
- end
44
- FileUtils . cd prism_dir do
45
- sh "git checkout v0.30.0"
37
+ FileUtils . cd dir do
38
+ sh "git submodule update --init"
46
39
end
47
40
end
48
41
@@ -52,9 +45,7 @@ MRuby::Gem::Specification.new('mruby-compiler2') do |spec|
52
45
end
53
46
end
54
47
55
- TEMPLATE_GENERATES = %w( node prettyprint serialize token_type )
56
-
57
- TEMPLATE_GENERATES . each do |name |
48
+ %w( node prettyprint serialize token_type ) . each do |name |
58
49
dst = "#{ prism_dir } /src/#{ name } .c"
59
50
# file task does not work when dst does not exist. why?
60
51
Rake ::Task [ :prism_templates ] . invoke unless File . exist? ( dst )
You can’t perform that action at this time.
0 commit comments