summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-12 12:10:22 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-12 12:10:22 (GMT)
commit5f0d0f40e5ebb0c3c2cb9c876c2167c07e9d8f33 (patch)
tree3a95b69539a4cdf0a2fb904acb08bc5796418863
parent6db457036e740802dc33611458c32654110e472a (diff)
downloadlibkolabxml-5f0d0f40e5ebb0c3c2cb9c876c2167c07e9d8f33.tar.gz
Update autogen.sh
-rwxr-xr-xautogen.sh22
1 files changed, 17 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index ec0d997..0cc4857 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,6 +3,7 @@
dobuild=0
doprep=0
dotest=0
+doinstall=0
srcdir=$(pwd)
@@ -23,13 +24,19 @@ while [ $# -gt 0 ]; do
shift
;;
+ --install|-i)
+ doinstall=1
+ shift
+ ;;
+
esac
done
-if [ ${dobuild} -eq 0 -a ${doprep} -eq 0 -a ${dotest} -eq 0 ]; then
+if [ ${dobuild} -eq 0 -a ${doprep} -eq 0 -a ${dotest} -eq 0 -a ${doinstall} -eq 0 ]; then
dobuild=1
doprep=1
dotest=1
+ doinstall=1
fi
# Rebuilds the entire foo in one go. One shot, one kill.
@@ -39,8 +46,9 @@ cd build
if [ ${doprep} -eq 1 ]; then
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
- -DCMAKE_PREFIX_PATH=/usr/lib64 \
- -DLIB_INSTALL_DIR_SUFFIX=64 \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DINCLUDE_INSTALL_DIR=/usr/include/kolabxml \
+ -DLIB_INSTALL_DIR=/usr/lib64 \
-DPHP_BINDINGS=ON \
-DPYTHON_BINDINGS=ON \
..
@@ -66,9 +74,13 @@ if [ ${dotest} -eq 1 ]; then
fi
fi
+if [ ${doinstall} -eq 1 ]; then
+ make install DESTDIR=${TMPDIR:-/tmp}
+fi
+
cd ..
-git archive --prefix=libkolabxml-0.4.0/ HEAD | gzip -c > libkolabxml-0.4.0.tar.gz
+git archive --prefix=libkolabxml-0.5/ HEAD | gzip -c > libkolabxml-0.5.tar.gz
-cp libkolabxml-0.4.0.tar.gz `rpm --eval='%{_sourcedir}'`
+cp libkolabxml-0.5.tar.gz `rpm --eval='%{_sourcedir}'`