File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change 25
25
fi
26
26
27
27
if [[ $VERSION =~ ^7 || $VERSION =~ ^8 || $VERSION =~ ^master$ ]]; then
28
- pecl download memcached-3.2.0
29
- DIR=$( pwd)
30
- tar xf $DIR /memcached-3.2.0.tgz && pushd memcached* /
31
- make clean || true
28
+ pecl download memcached-3.2.0
29
+ DIR=$( pwd)
30
+ ARCHIVE=$( ls $DIR /memcached-3.2.0.tar.gz $DIR /memcached-3.2.0.tgz 2> /dev/null | head -n1)
31
+ if [[ -n " $ARCHIVE " ]]; then
32
+ tar xf " $ARCHIVE "
33
+ pushd memcached* /
34
+ make clean || true
35
+ else
36
+ echo " Missing archive"
37
+ exit 1
38
+ fi
32
39
else
33
- pecl download memcached-2.2.0
34
- tar zxvf memcached* .tgz && pushd memcached* /
35
- make clean || true
40
+ pecl download memcached-2.2.0
41
+ DIR=$( pwd)
42
+ ARCHIVE=$( ls $DIR /memcached-2.2.0.tar.gz $DIR /memcached-2.2.0.tgz 2> /dev/null | head -n1)
43
+ if [[ -n " $ARCHIVE " ]]; then
44
+ tar xf " $ARCHIVE "
45
+ pushd memcached* /
46
+ make clean || true
47
+ else
48
+ echo " Missing archive"
49
+ exit 1
50
+ fi
36
51
fi
37
52
53
+
38
54
phpize
39
55
CXXFLAGS=" -fpermissive" ./configure --with-libmemcached-dir=$LIBMEMCACHED_DIR && make && make install
40
56
popd
You can’t perform that action at this time.
0 commit comments