Check out the excellent ripgrep
- Calls rustup
- Pulls changes from ripgrep upstream
- Builds ripgrep (if required) with SIMD and AVX extensions
- Runs built-in tests
- Strips built executable
$ rip-up -h
Update toolchain and build ripgrep from source
Usage:
rip-up
[-h] Print this help message
[-v 0|1|2|3] Control output verbosity
[-f] Force ripgrep rebuild
[-d git_dir] Specify path to Git local directory
[-u upstream] Specify Git upstream, e.g. 'origin/master'
[-p] Do not strip executable post build step
- Clone with
git clone --recurse-submodules
- Link top-level
rip-up
script into a directory inPATH
- bash (version 4.4+)
- bash_utils.sh
- Rust nightly CLI
- rustup
- cargo
- git
- grep
- sed
- unbuffer
- env
- basename
- md5sum
- tee
- chmod
- column
- strip