git-lfs/script/build-git
brian m. carlson 69553c9948
ci: don't reinstall openssl with Homebrew
GitHub Actions ships its own version of the openssl Homebrew package
that fails to reinstall with an EPERM error.  Since the reason we did
these contortions was to relink gettext and we finally gave up and
disabled gettext, let's just go back to a brew link --force and stop
trying to reinstall.
2020-09-22 20:05:21 +00:00

28 lines
578 B
Bash
Executable File

#!/bin/sh -ex
DIR="$1"
case $(uname -s) in
Darwin)
brew install curl zlib pcre2 openssl
brew link --force curl zlib pcre2 openssl;;
Linux)
export DEBIAN_FRONTEND=noninteractive
sed -e 's/^deb/deb-src/' /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/src.list
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get -y build-dep git;;
esac
cd "$DIR"
printf "%s\n" \
"NO_GETTEXT=YesPlease" \
"NO_OPENSSL=YesPlease" \
"prefix=/usr/local" \
> config.mak
make -j2
sudo make install
echo "Git version:"
git --version