Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve cleaning tasks.

  • Loading branch information...
commit 2477e603d7e7a8dcfd922e1dc777d2a354bebe4c 1 parent 2a360ae
Hongli Lai FooBarWidget authored
Showing with 7 additions and 11 deletions.
  1. +1 −0  Rakefile
  2. +5 −6 build/agents.rb
  3. +1 −5 build/ruby_extension.rb
1  Rakefile
View
@@ -50,6 +50,7 @@ end
desc "Remove compiled files"
task :clean do
sh "rm -rf build/cache"
+ sh "rm -rf libout"
end
desc "Remove all generated files"
11 build/agents.rb
View
@@ -157,9 +157,8 @@
end
task 'common:clean' do
- sh "rm -rf #{AGENT_OUTPUT_DIR}PassengerWatchdog #{AGENT_OUTPUT_DIR}PassengerWatchdog.dSYM"
- sh "rm -rf #{AGENT_OUTPUT_DIR}PassengerHelperAgent #{AGENT_OUTPUT_DIR}PassengerHelperAgent.dSYM"
- sh "rm -rf #{AGENT_OUTPUT_DIR}PassengerLoggingAgent #{AGENT_OUTPUT_DIR}PassengerLoggingAgent.dSYM"
- sh "rm -rf #{AGENT_OUTPUT_DIR}SpawnPreparer #{AGENT_OUTPUT_DIR}SpawnPreparer.dSYM"
- sh "rm -rf #{AGENT_OUTPUT_DIR}EnvPrinter #{AGENT_OUTPUT_DIR}EnvPrinter.dSYM"
-end
+ ['PassengerWatchdog', 'PassengerHelperAgent', 'PassengerLoggingAgent', 'SpawnPreparer', 'EnvPrinter'].each do |agent|
+ sh "rm -rf #{AGENT_OUTPUT_DIR}#{agent} #{AGENT_OUTPUT_DIR}#{agent}.o #{AGENT_OUTPUT_DIR}#{agent}.dSYM"
+ end
+ sh "rm -rf agents"
+end
6 build/ruby_extension.rb
View
@@ -44,9 +44,5 @@
end
task 'native_support:clean' do
- Dir["ext/ruby/*"].each do |entry|
- if File.exist?("#{entry}/Makefile")
- sh "rm -rf #{entry}"
- end
- end
+ sh "echo rm -rf #{output_dir}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.