summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 9afb191..2ae6ad6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -50,10 +50,10 @@ else
fi
# Rebuilds the entire foo in one go. One shot, one kill.
-rm -rf build/
-mkdir -p build
-cd build
if [ ${doprep} -eq 1 ]; then
+ rm -rf build/
+ mkdir -p build
+ pushd build
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -65,9 +65,12 @@ if [ ${doprep} -eq 1 ]; then
-DPYTHON_BINDINGS=ON \
-DCMAKE_BUILD_TYPE=Release \
.. || exit 1
+ popd
fi
+pushd build
if [ ${dobuild} -eq 1 ]; then
+
make || exit 1
fi
@@ -104,4 +107,4 @@ git archive --prefix=libkolab-${version}/ HEAD | gzip -c > libkolab-${version}.t
rm -rf `rpm --eval='%{_sourcedir}'`/libkolab-${version}.tar.gz
cp libkolab-${version}.tar.gz `rpm --eval='%{_sourcedir}'`
-
+popd