2019-11-27 13:47:27 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [[ -n "$CI_TMUX_VERSION" ]]; then
|
|
|
|
VERSIONS=("$CI_TMUX_VERSION")
|
|
|
|
else
|
2023-09-13 16:40:08 +02:00
|
|
|
VERSIONS=("3.0a" "3.1c" "3.2a" "3.3a")
|
2019-11-27 13:47:27 +01:00
|
|
|
fi
|
|
|
|
|
2023-09-13 16:40:08 +02:00
|
|
|
mkdir -p /opt
|
|
|
|
chmod a+w /opt
|
2019-11-27 13:47:27 +01:00
|
|
|
|
|
|
|
pushd /tmp
|
|
|
|
for version in "${VERSIONS[@]}";
|
|
|
|
do
|
2018-12-30 19:12:40 +01:00
|
|
|
if [[ -d "/opt/tmux-${version}" ]]; then
|
2019-11-27 13:47:27 +01:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
wget "https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz"
|
|
|
|
tar pfx "tmux-${version}.tar.gz" -C "/opt/"
|
|
|
|
|
|
|
|
pushd "/opt/tmux-${version}"
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
popd
|