tools: Add --install-all option to some setup scripts

This commit is contained in:
João Valverde 2022-08-25 10:32:48 +01:00
parent 8e77b5c499
commit 1d8f8d620d
3 changed files with 21 additions and 0 deletions

View File

@ -18,6 +18,7 @@ function print_usage() {
printf "The basic usage installs the needed software\\n\\n"
printf "Usage: %s [--install-optional] [--install-deb-deps] [...other options...]\\n" "$0"
printf "\\t--install-optional: install optional software as well\\n"
printf "\\t--install-all: install everything\\n"
printf "\\t[other]: other options are passed as-is to apt\\n"
}
@ -32,6 +33,9 @@ for arg; do
--install-optional)
ADDITIONAL=1
;;
--install-all)
ADDITIONAL=1
;;
*)
OPTIONS="$OPTIONS $arg"
;;

View File

@ -22,6 +22,7 @@ function print_usage() {
printf "\\t--install-test-deps: install packages required to run all tests\\n"
printf "\\t--install-qt5-deps: force installation of packages required to use Qt5\\n"
printf "\\t--install-qt6-deps: force installation of packages required to use Qt6\\n"
printf "\\t--install-all: install everything\\n"
printf "\\t[other]: other options are passed as-is to apt\\n"
}
@ -53,6 +54,14 @@ for arg; do
--install-qt6-deps)
ADD_QT6=1
;;
--install-all)
ADDITIONAL=1
DEBDEPS=1
TESTDEPS=1
ADD_QT5=1
ADD_QT6=1
HAVE_ADD_QT=1
;;
*)
OPTIONS="$OPTIONS $arg"
;;

View File

@ -21,6 +21,7 @@ function print_usage() {
printf "\t--install-rpm-deps: install packages required to build the .rpm file\n"
printf "\\t--install-qt5-deps: force installation of packages required to use Qt5\\n"
printf "\\t--install-qt6-deps: force installation of packages required to use Qt6\\n"
printf "\\t--install-all: install everything\\n"
printf "\t[other]: other options are passed as-is to the packet manager\n"
}
@ -50,6 +51,13 @@ for arg; do
ADD_QT6=1
HAVE_ADD_QT=1
;;
--install-all)
ADDITIONAL=1
RPMDEPS=1
ADD_QT5=1
ADD_QT6=1
HAVE_ADD_QT=1
;;
*)
OPTIONS="$OPTIONS $arg"
;;