build-snap:
@$(MAKE) "$(BUILD_DIR)\$(PHPDLL)"
- for %T in ($(SAPI_TARGETS)) do $(MAKE) /nologo "%T"
- for %T in ($(EXT_TARGETS)) do $(MAKE) /nologo "%T"
+ for %T in ($(SAPI_TARGETS)) do $(MAKE) /I /nologo "%T"
+ for %T in ($(EXT_TARGETS)) do $(MAKE) /I /nologo "%T"
build-dist: $(BUILD_DIR)\deplister.exe
-rmdir /s /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
$dist_dir = $build_dir . "/php-" . phpversion();
@mkdir($dist_dir);
-@mkdir("$dist_dir/sapi");
@mkdir("$dist_dir/ext");
@mkdir("$dist_dir/dev");
-@mkdir("$dist_dir/dlls");
@mkdir("$dist_dir/extras");
/* figure out additional DLL's that are required */
function copy_text_file($source, $dest)
{
$text = file_get_contents($source);
- $text = str_replace("\n", "\r\n", $text);
+ $text = preg_replace("/[^\r]\n$/", "\r\n", $text);
$fp = fopen($dest, "w");
fwrite($fp, $text);
fclose($fp);
copy("$build_dir/$phppdb", "$dist_dir/dev/$phppdb");
}
/* copy the sapi */
-copy_file_list($build_dir, "$dist_dir/sapi", $sapi_targets);
+copy_file_list($build_dir, "$dist_dir", $sapi_targets);
/* copy the extensions */
copy_file_list($build_dir, "$dist_dir/ext", $ext_targets);
}
$dll = $tdll;
}
- copy($dll, "$dist_dir/dlls/" . basename($dll));
+ copy($dll, "$dist_dir/" . basename($dll));
}
function copy_dir($source, $dest)