-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild-auto.sh
executable file
·46 lines (39 loc) · 1.17 KB
/
build-auto.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
if [ -z "${SUDO_USER}" ]; then
echo "ERROR! You must use sudo to run this script: sudo ./$(basename "${0}")"
exit 1
fi
if [ -z "${1}" ] || [ -z "${2}" ]; then
echo "Usage: $(basename "${0}") <codename> <obs_ver|all>"
exit 1
fi
. "$(dirname "$0")/build-config"
if [ "${1}" = "all" ]; then
DISTROS="${TARGETABLE_DISTROS[@]}"
elif [[ "${TARGETABLE_DISTROS[@]}" =~ "${1}" ]]; then
DISTROS="${1}"
else
echo "ERROR! Unknown Ubuntu release: ${1}"
exit 1
fi
if [ "${2}" = "all" ]; then
OBS_VERS="${TARGETABLE_VERSIONS[@]}"
elif [[ "${TARGETABLE_VERSIONS[@]}" =~ "${2}" ]]; then
OBS_VERS="${2}"
else
echo "ERROR! Unsupported OBS Studio version: ${2}"
exit 1
fi
PLUGIN_LIST="auxiliary"
if [ "${3}" == "essential" ]; then
PLUGIN_LIST="essential"
fi
for DISTRO in ${DISTROS}; do
for OBS_VER in ${OBS_VERS}; do
./build-validate.sh "${DISTRO}" "${OBS_VER}" || continue
./build-trash.sh "${DISTRO}"
./build-bootstrap.sh "${DISTRO}"
./build-enter.sh "${DISTRO}" "/root/obs-build.sh ${OBS_VER}" "${PLUGIN_LIST}"
./build-get-artefacts.sh "${DISTRO}" "${OBS_VER}" "${PLUGIN_LIST}"
done
done