forked from libvirt/libvirt-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautobuild.sh
More file actions
executable file
·39 lines (30 loc) · 780 Bytes
/
autobuild.sh
File metadata and controls
executable file
·39 lines (30 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
set -e
set -v
make distclean || :
aclocal
autoreconf -i -f
#phpize
PHPEDIR=`php-config --extension-dir | sed -s "s,/usr,$AUTOBUILD_INSTALL_ROOT,"`
PHPCDIR=`php-config --configure-options |
sed -n 's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p' |
sed -s "s,/etc,$AUTOBUILD_INSTALL_ROOT/etc,"`
./configure --prefix=$AUTOBUILD_INSTALL_ROOT
make
make install PHPEDIR=$PHPEDIR PHPCDIR=$PHPCDIR
rm -f *.tar.gz
make dist
if [ -n "$AUTOBUILD_COUNTER" ]; then
EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
else
NOW=`date +"%s"`
EXTRA_RELEASE=".$USER$NOW"
fi
EXTRA_RELEASE=""
if [ -x /usr/bin/rpmbuild ]
then
rpmbuild --nodeps \
--define "extra_release $EXTRA_RELEASE" \
--define "_sourcedir `pwd`" \
-ba --clean libvirt-php.spec
fi