Files
libiscsi/ci/install.sh
Bart Van Assche 3fe06e8563 ci: Add ci/install.bat
Move the MinGW package installation commands from ci/build.sh into
ci/install.sh.
2022-11-12 18:12:45 -08:00

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