File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 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.
913cd $( CDPATH= cd -- " $( dirname -- " $0 " ) /../../" && pwd -P)
1014
124128
125129# Export PHP.
126130echo " 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
129133cd $prefix || exit 5
130134
@@ -166,7 +170,7 @@ cd ..
166170
167171echo " "
168172echo " makedist: Creating $prefix .tar archive."
169- tar cf " $prefix " .tar " $prefix "
173+ " $ tar" cf " $prefix " .tar " $prefix "
170174rm -rf " $prefix " " $prefix " .tar.*
171175
172176echo " makedist: Creating $prefix .tar.gz archive."
You can’t perform that action at this time.
0 commit comments