1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
[ "$#" -gt "1" ] && echo "Too many args." && exit 1 [ "$#" -lt "1" ] && set -- "$@" "lite" case "`echo $1 | tr A-Z a-z`" in lite|light) cp -p config.h.lite config.h cp -p Makefile.lite Makefile make ;; gnu) autoreconf -i -Wno-unsupported && \ ./configure && \ make ;; *) echo "Unknown build type: $1" exit 1 ;; esac