PHP 8.3.31
Preview: Rakefile Size: 2.88 KB
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/Rakefile

#  Phusion Passenger - https://www.phusionpassenger.com/
#  Copyright (c) 2008-2025 Asynchronous B.V.
#
#  "Passenger", "Phusion Passenger" and "Union Station" are registered
#  trademarks of Asynchronous 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)
  if Bundler.respond_to?(:original_env)
    clean_env = Bundler.original_env
  elsif Bundler.respond_to?(:unbundled_env)
    clean_env = Bundler.unbundled_env
  else
    clean_env = Bundler.clean_env
  end
  ENV.replace(clean_env)

  ARGV.each do |arg|
    if arg =~ /^(\w+)=(.*)$/m
      ENV[$1] = $2
    end
  end
end

def require_build_system_file(name)
  require "#{SOURCE_ROOT}/build/#{name}"
end

require("#{SOURCE_ROOT}/config") if File.exist?("#{SOURCE_ROOT}/config.rb")
require_build_system_file 'basics'
if boolean_option('ONLY_RUBY')
  require_build_system_file 'ruby_extension'
else
  require_build_system_file 'ruby_extension'
  require_build_system_file 'common_library'
  require_build_system_file 'agent'
  require_build_system_file 'schema_printer'
  require_build_system_file 'apache2'
  require_build_system_file 'nginx'
  require_build_system_file 'packaging'
  require_build_system_file 'test_basics'
  require_build_system_file 'oxt_tests'
  require_build_system_file 'cxx_tests'
  require_build_system_file 'ruby_tests'
  require_build_system_file 'node_tests'
  require_build_system_file 'integration_tests'
  require_build_system_file '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 do
  sh "find -name AutoGenerated*.? -o -name AutoGenerated*.??? | xargs rm"
end

Directory Contents

Dirs: 13 × Files: 24

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
.github DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
.settings DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
.vscode DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
bin DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
build DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
dev DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
doc DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
images DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
man DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
packaging DIR
- drwxr-xr-x 2026-02-11 07:32:09
Edit Download
resources DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
src DIR
- drwxr-xr-x 2026-02-11 07:32:10
Edit Download
102 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
7.89 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.38 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
120 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
742 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
795 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.10 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
190.59 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
3.31 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
287 B lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
16.47 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.92 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
405 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.21 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
329 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
10.26 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.04 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
264.88 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.08 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.02 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
205 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.88 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
3.17 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.49 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).