29 lines
724 B
Bash
Executable File
29 lines
724 B
Bash
Executable File
#!/bin/bash
|
|
|
|
case "$(uname)" in
|
|
Linux)
|
|
packages=(
|
|
libcunit1-dev
|
|
libgcrypt20-dev
|
|
librdmacm-dev
|
|
xsltproc
|
|
)
|
|
for p in "${packages[@]}"; do
|
|
sudo sh -c "apt-get install -y $p"
|
|
done
|
|
;;
|
|
Darwin)
|
|
;;
|
|
MSYS*|MINGW*)
|
|
pacman --noconfirm --remove mingw-w64-x86_64-gcc-ada
|
|
pacman --noconfirm --remove mingw-w64-x86_64-gcc-fortran
|
|
pacman --noconfirm --remove mingw-w64-x86_64-gcc-libgfortran
|
|
pacman --noconfirm --remove mingw-w64-x86_64-gcc-objc
|
|
pacman --noconfirm --sync --refresh
|
|
pacman --noconfirm --sync --needed diffutils
|
|
pacman --noconfirm --sync --needed make
|
|
pacman --noconfirm --sync --needed mingw-w64-x86_64-gcc
|
|
pacman --noconfirm --sync --needed mingw-w64-x86_64-cunit
|
|
;;
|
|
esac
|