We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 199d5e6 commit 42e2c34Copy full SHA for 42e2c34
mkdeb.sh
@@ -0,0 +1,21 @@
1
+#!/bin/sh
2
+phpize
3
+./configure CFLAGS="-O3"
4
+make clean all
5
+DIR=`php-config --extension-dir | cut -c 2-`
6
+
7
+rm -rf debian
8
9
+mkdir -p debian
10
+mkdir -p debian/DEBIAN
11
+mkdir -p debian/$DIR
12
13
+cp debian.control debian/DEBIAN/control
14
15
+UBUNTU=`uname -v | grep -ci ubuntu`
16
+mkdir -p debian/etc/php5/conf.d/
17
+echo "extension=redis.so" >> debian/etc/php5/conf.d/redis.ini
18
19
+cp modules/redis.so debian/$DIR
20
+dpkg -b debian phpredis-`git describe --abbrev=0 --tags`_`uname -m`.deb
21
+rm -rf debian/
0 commit comments