tasks/build.rake in auser-skelerl-0.0.3 vs tasks/build.rake in auser-skelerl-0.0.4

- old
+ new

@@ -37,17 +37,10 @@ desc "Compile everything" task :compile => ["src:compile", "test:compile"] task :recompile => ["clean", "src:compile", "test:compile"] -desc "Compile deps" -task :compile_deps do - DEPS_FILES.each do |dir| - Kernel.system "cd #{dir} && rake compile" - end -end - namespace :src do desc "Compile src" task :compile => ['ebin'] + SRC_OBJ end @@ -112,21 +105,39 @@ end desc "Shell command" task :shell do cmd = "erl -pa ./ebin #{EXTRA_ERLC} -boot start_sasl" + puts cmd if Rake.application.options.trace Kernel.system cmd end -desc "Update submodules" -task :update do - cmd = "git submodule update" - DEPS_FILES.each do |dir| - Kernel.system "cd #{dir} && #{cmd}" - end +namespace(:deps) do + desc "Compile deps" + task :compile do + DEPS_FILES.each do |dir| + Kernel.system "cd #{dir} && rake compile" + end + end + + desc "Update deps/" + task :update do + update_cmd = "git remote update && git merge origin/master" # "git fetch && git rebase origin/master" + DEPS_FILES.each do |dir| + cmd = "cd #{dir} && #{update_cmd}" + puts cmd if Rake.application.options.trace + Kernel.system cmd + end + end + + desc "Update and compile deps/" + task :up => [:update, :compile] end desc "Build eunit" task :build_eunit do cmd = "cd test/include/eunit && make" Kernel.system cmd -end +end + +desc "Compile and get a shell" +task :compile_shell => [:compile, :shell] \ No newline at end of file