-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# ------------------------------------------------------------ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
# ------------------------------------------------------------ | ||
|
||
GIT_BINARY_URL?=https://github.com/git/git/archive/refs/tags/v2.40.1.tar.gz | ||
|
||
# Downloads and builds Git binary | ||
.PHONY: build-git | ||
build-git: | ||
@echo "$(ARROW) Downloading Git dependency - gettext" | ||
wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.1.tar.gz -O gettext.tar.gz | ||
tar xzf gettext.tar.gz | ||
rm -f gettext.tar.gz | ||
cd gettext-0.21.1 | ||
make configure && \ | ||
./configure --prefix=/usr && \ | ||
make && make install | ||
|
||
@echo "$(ARROW) Downloading Git binary" | ||
wget $(GIT_BINARY_URL) -O git.tar.gz | ||
tar xzf git.tar.gz | ||
rm -f git.tar.gz | ||
mkdir -p /tmp/gitbinary | ||
@echo "$(ARROW) Building Git binary" | ||
cd git-2.40.1 && \ | ||
make configure && \ | ||
./configure --prefix=/tmp/gitbinary && \ | ||
make all doc info && \ | ||
sudo make install install-doc install-html install-info | ||
mkdir -p $(OUT_DIR)/gitbinary | ||
cp /tmp/gitbinary/bin/git $(OUT_DIR)/gitbinary/ | ||
chmod +x $(OUT_DIR)/gitbinary/git | ||
sudo rm -rf /tmp/gitbinary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters