mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Do not clean the main tree before building
This commit is contained in:
parent
bececed6bd
commit
8cdb5e8b70
1 changed files with 7 additions and 4 deletions
11
Rakefile
11
Rakefile
|
@ -50,13 +50,16 @@ task :binary => :compile do
|
|||
FileUtils.mv(package, 'pkg')
|
||||
end
|
||||
|
||||
task :clean_submodules do
|
||||
sh "git submodule --quiet foreach git reset --hard"
|
||||
sh "git submodule --quiet foreach git clean -df"
|
||||
end
|
||||
|
||||
desc "clean up artifacts of the build"
|
||||
task :clean do
|
||||
task :clean => [:clean_submodules] do
|
||||
sh "rm -rf pkg"
|
||||
sh "git clean -df"
|
||||
sh "git submodule foreach git reset --hard"
|
||||
sh "git submodule foreach git clean -df"
|
||||
end
|
||||
|
||||
task :default => [:compile, :spec]
|
||||
task :build => [:clean]
|
||||
task :build => [:clean_submodules]
|
||||
|
|
Loading…
Reference in a new issue