Skip to content

Commit 1d2e6cb

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
2 parents a313cce + 843ba82 commit 1d2e6cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/dev/makedist

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# Written by Stig Bakken <[email protected]> 1997-05-28.
66
# Adapted to Git by Stanislav Malyshev <[email protected]>.
77

8+
# Check whether gtar is present (GNU tar)
9+
tar="$(which gtar)"
10+
tar="${tar:-$(which tar)}"
11+
812
# Go to project root directory.
913
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
1014

@@ -124,7 +128,7 @@ fi
124128

125129
# Export PHP.
126130
echo "makedist: Exporting $treeish from $git"
127-
git archive --format=tar $remote_option --prefix=$prefix/ $treeish | tar xvf - || exit 4
131+
git archive --format=tar $remote_option --prefix=$prefix/ $treeish | "$tar" xvf - || exit 4
128132

129133
cd $prefix || exit 5
130134

@@ -166,7 +170,7 @@ cd ..
166170

167171
echo ""
168172
echo "makedist: Creating $prefix.tar archive."
169-
tar cf "$prefix".tar "$prefix"
173+
"$tar" cf "$prefix".tar "$prefix"
170174
rm -rf "$prefix" "$prefix".tar.*
171175

172176
echo "makedist: Creating $prefix.tar.gz archive."

0 commit comments

Comments
 (0)