mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 09:08:37 +01:00
15 lines
347 B
Bash
15 lines
347 B
Bash
|
# Build script shamelessly stolen from ripgrep :)
|
||
|
|
||
|
cargo build --target $TARGET --release
|
||
|
|
||
|
build_dir=$(mktemp -d 2>/dev/null || mktemp -d -t tmp)
|
||
|
out_dir=$(pwd)
|
||
|
name="${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}"
|
||
|
mkdir "$build_dir/$name"
|
||
|
|
||
|
cp target/$TARGET/release/watchexec "$build_dir/$name/"
|
||
|
|
||
|
pushd $build_dir
|
||
|
tar czf "$out_dir/$name.tar.gz" *
|
||
|
popd
|