mirror of
https://github.com/php/php-src.git
synced 2025-01-22 03:34:19 +08:00
Allow arbitrary files to be added to distro with ADD_DIST_FILE(filename)
This commit is contained in:
parent
74dba52933
commit
b8a6661c81
@ -109,7 +109,7 @@ build-dist: $(BUILD_DIR)\deplister.exe
|
||||
-del /f /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)-Win32.zip
|
||||
-del /f /q $(BUILD_DIR)\php-debug-pack-$(PHP_VERSION_STRING)-Win32.zip
|
||||
-del /f /q $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)-Win32.zip
|
||||
$(BUILD_DIR)\php.exe -n win32/build/mkdist.php "$(BUILD_DIR)" "$(PHPDLL)" "$(SAPI_TARGETS)" "$(EXT_TARGETS)" "$(PECL_TARGETS)" "$(SNAPSHOT_TEMPLATE)"
|
||||
$(BUILD_DIR)\php.exe -n win32/build/mkdist.php "$(BUILD_DIR)" "$(PHPDLL)" "$(SAPI_TARGETS)" "$(EXT_TARGETS) $(PHP_EXTRA_DIST_FILES)" "$(PECL_TARGETS) $(PECL_EXTRA_DIST_FILES)" "$(SNAPSHOT_TEMPLATE)"
|
||||
cd $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
|
||||
-$(ZIP) -9 -r ..\php-$(PHP_VERSION_STRING)-Win32.zip .
|
||||
cd ..\..
|
||||
|
@ -17,7 +17,7 @@
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
// $Id: confutils.js,v 1.54 2005-02-13 21:38:39 wez Exp $
|
||||
// $Id: confutils.js,v 1.55 2005-02-26 01:07:48 edink Exp $
|
||||
|
||||
var STDOUT = WScript.StdOut;
|
||||
var STDERR = WScript.StdErr;
|
||||
@ -917,6 +917,15 @@ function SAPI(sapiname, file_list, makefiletarget, cflags)
|
||||
MFO.WriteBlankLines(1);
|
||||
}
|
||||
|
||||
function ADD_DIST_FILE(filename)
|
||||
{
|
||||
if (configure_module_dirname.match("pecl")) {
|
||||
ADD_FLAG("PECL_EXTRA_DIST_FILES", filename);
|
||||
} else {
|
||||
ADD_FLAG("PHP_EXTRA_DIST_FILES", filename);
|
||||
}
|
||||
}
|
||||
|
||||
function file_get_contents(filename)
|
||||
{
|
||||
var f, c;
|
||||
|
Loading…
Reference in New Issue
Block a user