Codebase list i3lock-color / 92d98fc5-29a2-4086-9265-a843d0ee20bf/upstream build.sh
92d98fc5-29a2-4086-9265-a843d0ee20bf/upstream

Tree @92d98fc5-29a2-4086-9265-a843d0ee20bf/upstream (Download .tar.gz)

build.sh @92d98fc5-29a2-4086-9265-a843d0ee20bf/upstreamraw · history · blame

#!/bin/sh -x

configureOpts="--disable-sanitizers"

while getopts ":hd" opt; do
  case ${opt} in
    h ) echo "Use -d to turn on sanitizers (for debugging only)"
      exit;;
    d ) configureOpts=""
      ;;
    \? ) 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