Update CARGO_TARGET_DIR

This commit is contained in:
Lzu Tao 2020-02-07 10:34:11 +07:00
parent c6a4beaf56
commit 9a12baad35
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ if [[ "$1" == "--help" || "$1" == "-h" ]]; then
echo "usage: $0"
fi
BUILD_DIR=$PWD/target/debug/test_build_base
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$PWD/target}
PROFILE=${PROFILE:-debug}
BUILD_DIR=${CARGO_TARGET_DIR}/${PROFILE}/test_build_base
MY_DIR=$(dirname "$0")
cd "$MY_DIR" || exit
find . -name '*.rs' -exec ./update-references.sh "$BUILD_DIR" {} +