69553c9948
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.
28 lines
578 B
Bash
Executable File
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
|