prebuild_plugin_naive.sh 482 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. source "bin/init/env.sh"
  3. git submodule update --init 'plugin/naive/*'
  4. if [ ! -x "$HOME/.local/lib/git/bin/git" ]; then
  5. curl -L -o git.tar.gz https://www.kernel.org/pub/software/scm/git/git-2.33.1.tar.gz &&
  6. mkdir -p git &&
  7. tar -C git --strip-components=1 -xzf git.tar.gz &&
  8. pushd git &&
  9. make configure &&
  10. ./configure \
  11. --with-curl \
  12. --prefix=$HOME/.local/lib/git &&
  13. make install -j16 &&
  14. popd &&
  15. rm -rf git.tar.gz git
  16. fi