Created
January 26, 2022 18:32
-
-
Save kevinburke/34f7f309968eebf637366be78a1a2d62 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -euo pipefail | |
set -x | |
main() { | |
rustup update nightly | |
go get github.com/uutils/coreutils || true | |
pushd "${HOME}/src/github.com/uutils/coreutils" | |
if [[ ! -d ./venv ]]; then | |
virtualenv venv | |
fi | |
# shellcheck source=./src/github.com/uutils/coreutils/venv/bin/activate | |
source "${HOME}/src/github.com/uutils/coreutils/venv/bin/activate" | |
pip install -U virtualenv | |
pip install -U pip | |
comain | |
pullmain | |
rm -rf ./target/release ./target/debug && make clean | |
rm -rf ~/local/coreutils | |
export PATH="${HOME}/bin:${HOME}/local/bin:/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/opt/homebrew/sbin:${HOME}.cargo/bin" | |
# make SKIP_UTILS='tr' install PREFIX=~/local/coreutils | |
make install PREFIX=~/local/coreutils | |
popd | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment