Last active
May 31, 2019 20:28
-
-
Save russplaysguitar/11361799 to your computer and use it in GitHub Desktop.
make git
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
#!/bin/bash | |
root=$(pwd) | |
prefix="$root/vendor/git" | |
# build into $prefix | |
cd git-* | |
make NO_OPENSSL=YesPlease NO_CURL=YesPlease configure | |
./configure --prefix="${prefix}" | |
make -i | |
make -i install | |
# clean up source tree | |
cd $root | |
rm -rf git-* | |
# write profile.d | |
mkdir -p $root/profile.d | |
cat >$root/profile.d/git.sh <<EOF | |
LD_LIBRARY_PATH="/app/vendor/git/lib:${LD_LIBRARY_PATH}" | |
PATH="/app/vendor/git/bin:${PATH}" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment