i3lock-color/build.sh

28 lines
494 B
Bash
Raw Permalink Normal View History

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