0
Files
Vladimir Kotal e68aafe3e2 do not constrain the output of the Groups command in opengrok-groups ()
fixes 

Also, do not install Python packages on Linux as the system environment is externally managed
2024-10-11 16:21:51 +02:00

52 lines
978 B
Bash
Executable File

#!/bin/bash
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt-get update -qq
if [[ $? != 0 ]]; then
echo "cannot update"
exit 1
fi
sudo apt-get install -qq \
cvs \
mercurial \
cssc \
bzr \
subversion \
rcs \
rcs-blame \
python3 \
python3-venv \
python3-pip \
nodejs \
jq
if [[ $? != 0 ]]; then
echo "cannot install extra packages"
exit 1
fi
# Bitkeeper install failure is not critical, so exit code is not checked.
sudo ./dev/install-bitkeeper.sh
sudo ./dev/install-universal_ctags.sh
if [[ $? != 0 ]]; then
echo "cannot install Universal ctags"
exit 1
fi
elif [[ "$RUNNER_OS" == "macOS" ]]; then
export HOMEBREW_NO_AUTO_UPDATE=1
brew install cvs libgit2 jq autoconf automake mercurial
if [[ $? != 0 ]]; then
echo "cannot install extra packages"
exit 1
fi
sudo ./dev/install-universal_ctags.sh
if [[ $? != 0 ]]; then
echo "cannot install Universal ctags"
exit 1
fi
fi