diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 |