Files
libiscsi/ci/build.sh
2021-07-17 21:06:19 -07:00

23 lines
704 B
Bash
Executable File

#!/bin/sh
case "$(uname)" in
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
export PATH="/mingw64/bin:$PATH"
;;
esac
./autogen.sh &&
./configure --enable-manpages --enable-test-tool --enable-tests \
--enable-examples &&
make &&
sudo make install