Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created January 26, 2022 18:32
Show Gist options
  • Save kevinburke/34f7f309968eebf637366be78a1a2d62 to your computer and use it in GitHub Desktop.
Save kevinburke/34f7f309968eebf637366be78a1a2d62 to your computer and use it in GitHub Desktop.
#!/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