install.sh: add --system-wlroots option

This commit is contained in:
Ilia Bozhinov 2020-03-19 23:11:42 +01:00
parent 0a5e4dd73a
commit 2d61a0b7b5

View File

@ -6,6 +6,7 @@ print_help() {
echo " -s, --stream=<stream> Build a particular branch of Wayfire and other components. Usually master or a release like X.Y.Z"
echo " Default is 0.4.0"
echo " -p, --prefix=<prefix> Prefix where to install Wayfire. Default: /opt/wayfire"
echo " --system-wlroots Use the system-wide installation of wlroots instead of the bundled one."
exit 1
}
@ -19,7 +20,7 @@ USE_SYSTEM_WLROOTS=disabled
# Temporarily disable exit on error
set +e
options=$(getopt -o hvcs:p: --long verbose --long clean --long stream: --long prefix: -- $@)
options=$(getopt -o hvcs:p: --long verbose --long clean --long stream: --long prefix: --long system-wlroots -- $@)
ERROR_CODE=$?
set -e
@ -45,6 +46,9 @@ while true; do
shift
PREFIX=$1
;;
--system-wlroots)
USE_SYSTEM_WLROOTS=enabled
;;
-h|--help)
print_help
exit;;