mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 06:40:03 +00:00
CI Linux install_other.sh: option to specify one dep
This commit is contained in:
28
.github/scripts/Linux/install_others.sh
vendored
28
.github/scripts/Linux/install_others.sh
vendored
@@ -70,10 +70,26 @@ install_vulkan() {(
|
||||
sudo make install
|
||||
)}
|
||||
|
||||
install_aja
|
||||
install_gpujpeg
|
||||
install_live555
|
||||
install_ndi
|
||||
install_vulkan
|
||||
install_ximea
|
||||
show_help=
|
||||
if [ $# -eq 1 ] && { [ "$1" = -h ] || [ "$1" = --help ] || [ "$1" = help ]; }; then
|
||||
show_help=1
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ] || [ $show_help ]; then
|
||||
set -- aja gpujpeg live555 ndi vulkan ximea
|
||||
fi
|
||||
|
||||
if [ $show_help ]; then
|
||||
set +x
|
||||
printf "Usage:\n"
|
||||
printf "\t%s [<features>] | [ -h | --help | help ]\n" "$0"
|
||||
printf "\nInstall all aditional dependencies (without arguments) or install one explicitly.\n"
|
||||
printf "\nAvailable ones: %s%s%s\n" $(tput bold) "$*" $(tput sgr0)
|
||||
return 0
|
||||
fi
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
install_"$1"
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user