#!/usr/bin/env bash if [ -z "$1" ] then printf "Usage: setup.sh install_directory [dependencies].\n" 1>&2 exit 1 fi cd $(dirname $0) libname=$(basename $(pwd)) ./configure --prefix="$1" --with-zlib="$2" make make check -j8 make install