-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_zip.sh
More file actions
executable file
·31 lines (24 loc) · 817 Bytes
/
make_zip.sh
File metadata and controls
executable file
·31 lines (24 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash -e
SOURCEDIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ "X$1" == "X" ]; then
BUILDDIR=$SOURCEDIR/build-mk-$(hostname)
else
BUILDDIR=$1
fi
echo "Build project, run head less unit tests and make package (in $BUILDDIR)..."
if [ -x ./build_documentation.sh ]; then ./build_documentation.sh fi
mkdir -p $BUILDDIR
pushd $BUILDDIR
# remove cache from last build to ensure a fresh configuration
if [ -r CMakeCache.txt ]; then
rm -f CMakeCache.txt
fi
cmake -DCMAKE_VERBOSE_MAKEFILE=FALSE -DCMAKE_BUILD_TYPE=Distribution -DBoost_DEBUG=FALSE $SOURCEDIR/src
#cmake -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_BUILD_TYPE=Distribution -DBoost_DEBUG=FALSE $SOURCEDIR/src
make
pushd test && ./bergunittests && popd
#make package berg_extract
make package
popd
ls -l $BUILDDIR/Berg*.zip
exit 0;