1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.1' into PHP-8.2

This commit is contained in:
Ben Ramsey
2023-02-14 13:49:49 -06:00

View File

@@ -5,6 +5,10 @@
# Written by Stig Bakken <ssb@guardian.no> 1997-05-28.
# Adapted to Git by Stanislav Malyshev <stas@php.net>.
# Check whether gtar is present (GNU tar)
tar="$(which gtar)"
tar="${tar:-$(which tar)}"
# Go to project root directory.
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
@@ -124,7 +128,7 @@ fi
# Export PHP.
echo "makedist: Exporting $treeish from $git"
git archive --format=tar $remote_option --prefix=$prefix/ $treeish | tar xvf - || exit 4
git archive --format=tar $remote_option --prefix=$prefix/ $treeish | "$tar" xvf - || exit 4
cd $prefix || exit 5
@@ -166,7 +170,7 @@ cd ..
echo ""
echo "makedist: Creating $prefix.tar archive."
tar cf "$prefix".tar "$prefix"
"$tar" cf "$prefix".tar "$prefix"
rm -rf "$prefix" "$prefix".tar.*
echo "makedist: Creating $prefix.tar.gz archive."