summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-06-23 16:51:38 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-06-23 16:51:38 +0200
commit7895d30023c918e8fb3a2d7d1003166a9ec2543f (patch)
treef6455230bb103a7816048291dc43d3cb7a90a1b8
parenta3feac38652c976fbeb3683341686df76de1268b (diff)
downloadlibcalendaring-7895d30023c918e8fb3a2d7d1003166a9ec2543f.tar.gz
Update autogen.sh
-rwxr-xr-xautogen.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/autogen.sh b/autogen.sh
index 9728d77..7425242 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -40,9 +40,13 @@ if [ ${dobuild} -eq 0 -a ${doprep} -eq 0 -a ${dotest} -eq 0 -a ${doinstall} -eq
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
+fi
+
+pushd build
+
if [ ${doprep} -eq 1 ]; then
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
@@ -65,9 +69,6 @@ if [ ${doinstall} -eq 1 ]; then
make install DESTDIR=${TMPDIR:-/tmp}
fi
-cd ..
-
-git archive --prefix=libcalendaring/ HEAD | gzip -c > libcalendaring.tar.gz
+popd
-cp libcalendaring.tar.gz `rpm --eval='%{_sourcedir}'`