Merge pull request #335 from keyboardio/revert-330-f/kaleidoscope-builder/no-auto-clean

Revert "kaleidoscope-builder: Use a stable build directory"
pull/336/head
Jesse Vincent 6 years ago committed by GitHub
commit 5bd09664e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,11 +10,9 @@ build_version () {
GIT_VERSION="$(cd "$(find_sketch)"; git describe --abbrev=4 --dirty --always)"
LIB_VERSION="$(cd "$(find_sketch)"; (grep version= ../../library.properties 2>/dev/null || echo version=0.0.0) | cut -d= -f2)-g${GIT_VERSION}"
BUILD_PATH="$(pwd)/_build/"
BUILD_PATH="${BUILD_PATH:-"$(mktemp -d 2>/dev/null || mktemp -d -t 'build')"}"
OUTPUT_DIR="${OUTPUT_DIR:-output/${LIBRARY}}"
OUTPUT_PATH="${OUTPUT_PATH:-${SOURCEDIR}/${OUTPUT_DIR}}"
install -d "${BUILD_PATH}"
}
build_filenames () {
@ -205,6 +203,8 @@ compile () {
if [ "${ARDUINO_VERBOSE}" = "-verbose" ]; then
echo "Build artifacts can be found in ${BUILD_PATH}";
else
rm -rf "${BUILD_PATH}"
fi
}
@ -263,7 +263,7 @@ decompile () {
}
clean () {
rm -rf -- "${OUTPUT_PATH}" "${BUILD_PATH}"
rm -rf -- "${OUTPUT_PATH}"
}
reset_device() {

Loading…
Cancel
Save