mirror of
https://github.com/vgough/encfs.git
synced 2024-11-24 08:53:10 +01:00
32 lines
420 B
Bash
Executable File
32 lines
420 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
: ${CMAKE:=cmake}
|
|
: ${CHECK:=false}
|
|
: ${INTEGRATION:=true}
|
|
|
|
${CMAKE} --version
|
|
|
|
CFG=$*
|
|
if [[ "$CHECK" == "true" ]]; then
|
|
CFG="-DLINT=ON $CFG"
|
|
fi
|
|
|
|
if [[ ! -d build ]]
|
|
then
|
|
mkdir build
|
|
fi
|
|
|
|
cd build
|
|
${CMAKE} .. ${CFG}
|
|
make -j2
|
|
make unittests
|
|
make test
|
|
if [[ "$INTEGRATION" == "true" ]]; then
|
|
make integration
|
|
fi
|
|
|
|
cd ..
|
|
|
|
echo
|
|
echo 'Everything looks good, you can install via "make install -C build".'
|