2023-02-13 10:26:01 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-04-29 06:43:54 -07:00
|
|
|
while (($# > 0)); do
|
|
|
|
case $1 in
|
|
|
|
--test) # install test dependencies
|
|
|
|
TEST=1
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2023-02-13 10:26:01 -07:00
|
|
|
os=$(uname -s)
|
|
|
|
if [[ $os == Linux ]]; then
|
2023-09-09 01:36:42 -07:00
|
|
|
sudo apt-get update
|
2023-09-30 04:14:24 -07:00
|
|
|
sudo apt-get install -y attr build-essential cmake curl gettext libattr1-dev ninja-build unzip
|
2023-04-29 06:43:54 -07:00
|
|
|
if [[ -n $TEST ]]; then
|
2023-09-09 01:36:42 -07:00
|
|
|
sudo apt-get install -y locales-all cpanminus
|
2023-04-29 06:43:54 -07:00
|
|
|
fi
|
2023-02-13 10:26:01 -07:00
|
|
|
elif [[ $os == Darwin ]]; then
|
|
|
|
brew update --quiet
|
2023-04-29 06:43:54 -07:00
|
|
|
brew install ninja
|
|
|
|
if [[ -n $TEST ]]; then
|
|
|
|
brew install cpanminus
|
|
|
|
fi
|
2023-02-13 10:26:01 -07:00
|
|
|
fi
|