encfs/build.sh

32 lines
420 B
Bash
Raw Permalink Normal View History

#!/bin/bash -eu
2017-08-26 08:00:11 +02:00
: ${CMAKE:=cmake}
: ${CHECK:=false}
: ${INTEGRATION:=true}
2017-08-26 08:00:11 +02:00
${CMAKE} --version
CFG=$*
if [[ "$CHECK" == "true" ]]; then
CFG="-DLINT=ON $CFG"
fi
if [[ ! -d build ]]
then
mkdir build
fi
cd build
2017-08-26 08:00:11 +02:00
${CMAKE} .. ${CFG}
make -j2
make unittests
make test
if [[ "$INTEGRATION" == "true" ]]; then
make integration
fi
cd ..
2017-08-08 17:50:44 +02:00
echo
echo 'Everything looks good, you can install via "make install -C build".'