1
0
Fork 0
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:
ignisf 2014-06-17 02:38:41 +03:00
parent bececed6bd
commit 8cdb5e8b70

View file

@ -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]