1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# Executable version of INSTALL command="$1" shift case "$command" in configure) [ `uname` != Darwin ] || glibtoolize autoreconf -i ./configure "$@" ;; build) make -j "$@" ;; copy|install) make install "$@" ;; *) echo "Usage: setup.sh [configure|build|copy|install] ..." esac