Permalink
Switch branches/tags
request_handler_with_pipes release-5.1.8 release-5.1.7 release-5.1.6 release-5.1.5 release-5.1.4 release-5.1.3 release-5.1.2 release-5.1.1 release-5.1.0 release-5.0.30 release-5.0.29 release-5.0.28 release-5.0.27 release-5.0.26 release-5.0.25 release-5.0.24 release-5.0.23 release-5.0.22 release-5.0.21 release-5.0.20 release-5.0.19 release-5.0.18 release-5.0.17 release-5.0.16 release-5.0.15 release-5.0.14 release-5.0.13 release-5.0.11 release-5.0.10 release-5.0.9 release-5.0.8 release-5.0.7 release-5.0.6 release-5.0.5 release-5.0.4 release-5.0.3 release-5.0.2 release-5.0.1 release-5.0.0.rc2 release-5.0.0.rc1 release-5.0.0.beta3 release-5.0.0.beta2 release-5.0.0.beta1 release-4.0.60 release-4.0.59 release-4.0.58 release-4.0.57 release-4.0.56 release-4.0.55 release-4.0.53 release-4.0.52 release-4.0.51 release-4.0.50 release-4.0.49 release-4.0.48 release-4.0.46 release-4.0.45 release-4.0.44 release-4.0.43 release-4.0.42 release-4.0.41 release-4.0.40 release-4.0.39 release-4.0.38 release-4.0.37 release-4.0.36 release-4.0.35 release-4.0.34 release-4.0.33 release-4.0.32 release-4.0.31 release-4.0.30 release-4.0.29 release-4.0.28 release-4.0.27 release-4.0.26 release-4.0.25 release-4.0.24 release-4.0.23 release-4.0.21 release-4.0.20 release-4.0.19 release-4.0.18 release-4.0.17 release-4.0.16 release-4.0.14 release-4.0.13 release-4.0.10 release-4.0.8 release-4.0.7 release-4.0.6 release-4.0.5 release-4.0.4 release-4.0.3 release-4.0.2 release-4.0.1 release-4.0.0.rc6 release-4.0.0.rc4 release-3.9.5.rc3
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (75 sloc) 2.41 KB
# Phusion Passenger - https://www.phusionpassenger.com/
# Copyright (C) 2008-2016 Phusion Holding B.V.
#
# "Passenger", "Phusion Passenger" and "Union Station" are registered
# trademarks of Phusion Holding B.V.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
require 'pathname'
SOURCE_ROOT = Pathname.new(File.expand_path(File.dirname(__FILE__)))
$LOAD_PATH.unshift(SOURCE_ROOT.to_s)
$LOAD_PATH.unshift("#{SOURCE_ROOT}/src/ruby_supportlib")
# Clean Bundler environment variables, preserve Rake environment variables.
# Otherwise all Ruby commands will take slightly longer to start, which messes up
# timing-sensitive tests like those in the C++ test suite.
if defined?(Bundler)
clean_env = nil
Bundler.with_clean_env do
clean_env = ENV.to_hash
end
ENV.replace(clean_env)
ARGV.each do |arg|
if arg =~ /^(\w+)=(.*)$/m
ENV[$1] = $2
end
end
end
require("#{SOURCE_ROOT}/config") if File.exist?("#{SOURCE_ROOT}/config.rb")
require 'build/basics'
if boolean_option('ONLY_RUBY')
require 'build/ruby_extension'
else
require 'build/ruby_extension'
require 'build/common_library'
require 'build/agent'
require 'build/apache2'
require 'build/nginx'
require 'build/documentation'
require 'build/packaging'
require 'build/test_basics'
require 'build/oxt_tests'
require 'build/cxx_tests'
require 'build/ruby_tests'
require 'build/node_tests'
require 'build/integration_tests'
require 'build/misc'
end
#### Default tasks
task :default do
abort "Please type one of:\n" +
" rake apache2\n" +
" rake nginx"
end
desc "Remove compiled files"
task :clean => 'clean:cache' do
if OUTPUT_DIR == "buildout/"
sh "rm -rf buildout"
end
end
task 'common:clean' => 'clean:cache'
task 'clean:cache' do
sh "rm -rf #{OUTPUT_DIR}cache"
end
desc "Remove all generated files"
task :clobber