summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-04-17 18:22:01 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-04-17 18:44:08 +0200
commitd786701120daf7bdcfe14d5e7586ae0fd108e438 (patch)
treead6f8eb6cee87f2292a8b563254cc8e3b0d8409c
parent7d6ecf0e4770c9506102a3482e48e825b4fdfada (diff)
downloadlibkolab-d786701120daf7bdcfe14d5e7586ae0fd108e438.tar.gz
pushd and popd to the right directories at the right moment
-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