php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mkdist.php File Reference

Go to the source code of this file.

Functions

 get_depends ($module)
 
 copy_file_list ($source_dir, $dest_dir, $list)
 
 copy_text_file ($source, $dest)
 
 extract_file_from_tarball ($pkg, $filename, $dest_dir)
 
if(!empty($fls)) foreach( $pecl_dll_deps as $dll) copy_dir ($source, $dest)
 
 copy_test_dir ($directory, $dest)
 
 make_phar_dot_phar ($dist_dir)
 

Variables

 $php_version = $argv[1]
 
 $build_dir = $argv[2]
 
 $php_build_dir = $argv[3]
 
 $phpdll = $argv[4]
 
 $sapi_targets = explode(" ", $argv[5])
 
 $ext_targets = explode(" ", $argv[6])
 
 $pecl_targets = explode(" ", $argv[7])
 
 $snapshot_template = $argv[8]
 
 $is_debug = preg_match("/^debug/i", $build_dir)
 
 $dist_dir = $build_dir . "/php-" . $php_version
 
 $test_dir = $build_dir . "/php-test-pack-" . $php_version
 
 $pecl_dir = $build_dir . "/pecl-" . $php_version
 
 $extra_dll_deps = array()
 
 $per_module_deps = array()
 
 $pecl_dll_deps = array()
 
 $phplib = str_replace(".dll", ".lib", $phpdll)
 
if(sizeof($pecl_targets)) $text_files
 
foreach($text_files as $src=> $dest) $general_files
 
foreach($general_files as $src=> $dest) $branch = "HEAD"
 
 $fp = fopen("$dist_dir/snapshot.txt", "w")
 
 $now = date("r")
 
 $exts = get_loaded_extensions()
 
foreach($extra_dll_deps as $dll) $ENCHANT_DLLS
 
if(file_exists("$php_build_dir/bin/libenchant2.dll")) else
 
 $ENCHANT_DLLS [] = array('lib/enchant', 'libenchant_ispell.dll')
 
foreach($ENCHANT_DLLS as $dll) $OPENSSL_DLLS = $php_build_dir . "/lib/ossl-modules/*.dll"
 
 $fls = glob($OPENSSL_DLLS)
 
if(!empty($fls)) $SASL_DLLS = $php_build_dir . "/bin/sasl2/sasl*.dll"
 
if(!is_dir($test_dir)) $dirs
 
 $use_pear_template = true
 

Function Documentation

◆ copy_dir()

if(!empty( $fls)) foreach($pecl_dll_deps as $dll) copy_dir ( $source,
$dest )

Definition at line 410 of file mkdist.php.

◆ copy_file_list()

copy_file_list ( $source_dir,
$dest_dir,
$list )

Definition at line 131 of file mkdist.php.

◆ copy_test_dir()

copy_test_dir ( $directory,
$dest )

Definition at line 436 of file mkdist.php.

◆ copy_text_file()

copy_text_file ( $source,
$dest )

Definition at line 157 of file mkdist.php.

◆ extract_file_from_tarball()

extract_file_from_tarball ( $pkg,
$filename,
$dest_dir )

Definition at line 169 of file mkdist.php.

◆ get_depends()

get_depends ( $module)

Definition at line 32 of file mkdist.php.

◆ make_phar_dot_phar()

make_phar_dot_phar ( $dist_dir)

Definition at line 476 of file mkdist.php.

Variable Documentation

◆ $branch

foreach ( $general_files as $src=> $dest) $branch = "HEAD"

Definition at line 274 of file mkdist.php.

◆ $build_dir

$build_dir = $argv[2]

Definition at line 5 of file mkdist.php.

◆ $dirs

if (!is_dir( $test_dir)) $dirs
Initial value:
= array(
'ext',
'Sapi',
'Zend',
'tests'
)

Definition at line 510 of file mkdist.php.

◆ $dist_dir

$dist_dir = $build_dir . "/php-" . $php_version

Definition at line 17 of file mkdist.php.

◆ $ENCHANT_DLLS [1/2]

foreach ( $extra_dll_deps as $dll) $ENCHANT_DLLS
Initial value:
= array(
array('', 'glib-2.dll'),
array('', 'gmodule-2.dll'),
)

Definition at line 335 of file mkdist.php.

◆ $ENCHANT_DLLS [2/2]

$ENCHANT_DLLS[] = array('lib/enchant', 'libenchant_ispell.dll')

Definition at line 343 of file mkdist.php.

◆ $ext_targets

$ext_targets = explode(" ", $argv[6])

Definition at line 9 of file mkdist.php.

◆ $extra_dll_deps

$extra_dll_deps = array()

Definition at line 28 of file mkdist.php.

◆ $exts

Definition at line 288 of file mkdist.php.

◆ $fls

$fls = glob($OPENSSL_DLLS)

Definition at line 361 of file mkdist.php.

◆ $fp

$fp = fopen("$dist_dir/snapshot.txt", "w")

Definition at line 275 of file mkdist.php.

◆ $general_files

foreach ( $text_files as $src=> $dest) $general_files
Initial value:
= array(
"$GLOBALS[build_dir]\\deplister.exe" => "deplister.exe",
)

Definition at line 265 of file mkdist.php.

◆ $is_debug

$is_debug = preg_match("/^debug/i", $build_dir)

Definition at line 13 of file mkdist.php.

◆ $now

$now = date("r")

Definition at line 276 of file mkdist.php.

◆ $OPENSSL_DLLS

foreach ( $ENCHANT_DLLS as $dll) $OPENSSL_DLLS = $php_build_dir . "/lib/ossl-modules/*.dll"

Definition at line 360 of file mkdist.php.

◆ $pecl_dir

$pecl_dir = $build_dir . "/pecl-" . $php_version

Definition at line 19 of file mkdist.php.

◆ $pecl_dll_deps

$pecl_dll_deps = array()

Definition at line 30 of file mkdist.php.

◆ $pecl_targets

$pecl_targets = explode(" ", $argv[7])

Definition at line 10 of file mkdist.php.

◆ $per_module_deps

$per_module_deps = array()

Definition at line 29 of file mkdist.php.

◆ $php_build_dir

$php_build_dir = $argv[3]

Definition at line 6 of file mkdist.php.

◆ $php_version

$php_version = $argv[1]

Definition at line 4 of file mkdist.php.

◆ $phpdll

$phpdll = $argv[4]

Definition at line 7 of file mkdist.php.

◆ $phplib

$phplib = str_replace(".dll", ".lib", $phpdll)

Definition at line 232 of file mkdist.php.

◆ $sapi_targets

$sapi_targets = explode(" ", $argv[5])

Definition at line 8 of file mkdist.php.

◆ $SASL_DLLS

if (!empty( $fls)) $SASL_DLLS = $php_build_dir . "/bin/sasl2/sasl*.dll"

Definition at line 376 of file mkdist.php.

◆ $snapshot_template

$snapshot_template = $argv[8]

Definition at line 11 of file mkdist.php.

◆ $test_dir

$test_dir = $build_dir . "/php-test-pack-" . $php_version

Definition at line 18 of file mkdist.php.

◆ $text_files

if (sizeof( $pecl_targets)) $text_files
Initial value:
= array(
"LICENSE" => "license.txt",
"NEWS" => "news.txt",
"README.md" => "README.md",
"README.REDIST.BINS" => "readme-redist-bins.txt",
"php.ini-development" => "php.ini-development",
"php.ini-production" => "php.ini-production"
)

Definition at line 251 of file mkdist.php.

◆ $use_pear_template

$use_pear_template = true

Definition at line 523 of file mkdist.php.

◆ else

if(! $use_pear_template) if (file_exists( $snapshot_template)) else
Initial value:
{
$ENCHANT_DLLS[] = array('lib/enchant', 'libenchant_myspell.dll')
foreach($extra_dll_deps as $dll) $ENCHANT_DLLS
Definition mkdist.php:335

Definition at line 341 of file mkdist.php.