export
-PHP ?= 7.3
+PHP ?= 7.4
JOBS ?= 2
PHP_MIRROR ?= https://php.net/distributions/
TMPDIR ?= /tmp
$(PHP_RELEASES): $(makdir)/php-version-url-dist.php $(makdir)/php-version-url-qa.php | $(srcdir)
cd $(makdir) && printf "master\tmaster\t%s/fetch-master.sh\n" $$(pwd) >$@
+ curl -sSL "https://php.net/releases/index.php?json&version=8&max=-1" | $(makdir)/php-version-url-dist.php >>$@
curl -sSL "https://php.net/releases/index.php?json&version=7&max=-1" | $(makdir)/php-version-url-dist.php >>$@
curl -sSL "https://php.net/releases/index.php?json&version=5&max=-1" | $(makdir)/php-version-url-dist.php >>$@
curl -sSL "https://qa.php.net/api.php?type=qa-releases&format=json" | $(makdir)/php-version-url-qa.php >>$@
}
foreach ($by_minor as $v => $r) {
- printf("%s\t%s\tcurl -sSL %s%s | tar xj\n", $v, $r, $mirror,
- $versions[$r]["source"][0]["filename"]);
+ $compress = array("gz" => "z", "bz2" => "j", "xz" => "J");
+ $filename = $versions[$r]["source"][0]["filename"];
+ printf("%s\t%s\tcurl -sSL %s%s | tar x%s\n", $v, $r, $mirror,
+ $filename,
+ $compress[pathinfo($filename, PATHINFO_EXTENSION)]
+ );
}