File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
# Written by Stig Bakken <[email protected] > 1997-05-28.
6
6
# Adapted to Git by Stanislav Malyshev <[email protected] >.
7
7
8
+ # Check whether gtar is present (GNU tar)
9
+ tar=" $( which gtar) "
10
+ tar=" ${tar:- $(which tar)} "
11
+
8
12
# Go to project root directory.
9
13
cd $( CDPATH= cd -- " $( dirname -- " $0 " ) /../../" && pwd -P)
10
14
124
128
125
129
# Export PHP.
126
130
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
128
132
129
133
cd $prefix || exit 5
130
134
@@ -166,7 +170,7 @@ cd ..
166
170
167
171
echo " "
168
172
echo " makedist: Creating $prefix .tar archive."
169
- tar cf " $prefix " .tar " $prefix "
173
+ " $ tar" cf " $prefix " .tar " $prefix "
170
174
rm -rf " $prefix " " $prefix " .tar.*
171
175
172
176
echo " makedist: Creating $prefix .tar.gz archive."
You can’t perform that action at this time.
0 commit comments