1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-06-25 07:27:52 +02:00
tmux-fingers/spec/install-tmux-versions.sh
2023-09-27 15:21:51 +02:00

28 lines
513 B
Bash
Executable File

#!/usr/bin/env bash
if [[ -n "$CI_TMUX_VERSION" ]]; then
VERSIONS=("$CI_TMUX_VERSION")
else
VERSIONS=("3.0a" "3.1c" "3.2a" "3.3a")
fi
mkdir -p /opt
chmod a+w /opt
pushd /tmp
for version in "${VERSIONS[@]}";
do
if [[ -d "/opt/tmux-${version}" ]]; then
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