i3lock-color/build.sh

28 lines
494 B
Bash
Executable File

#!/bin/sh -x
configureOpts=""
while getopts ":hd" opt; do
case ${opt} in
h ) echo "Use -d to turn on sanitizers (for debugging only)"
exit;;
d ) configureOpts="--enable-debug"
;;
\? ) echo "Usage: $0 [-h] [-d]"
exit;;
esac
done
configureOpts="${configureOpts} --prefix=/usr --sysconfdir=/etc"
autoreconf -fiv
BUILD_DIR=build/
rm -rf $BUILD_DIR
mkdir -vp $BUILD_DIR
cd $BUILD_DIR || { echo "cd $BUILD_DIR"; exit 127; }
../configure ${configureOpts}
make