Fix upgrade script

Avoid cleaning the whole target dir
This commit is contained in:
gwenn 2018-02-10 11:11:51 +01:00
parent 08cda05406
commit 87d97b143e

View File

@ -16,7 +16,7 @@ rm -f $SQLITE3_LIB_DIR/bindgen_bundled_version.rs
SQLITE3_INCLUDE_DIR=$SQLITE3_LIB_DIR SQLITE3_INCLUDE_DIR=$SQLITE3_LIB_DIR
cargo update cargo update
# Just to make sure there is only one bingen.rs file in target dir # Just to make sure there is only one bingen.rs file in target dir
cargo clean find $SCRIPT_DIR/target -type f -name bindgen.rs -exec rm {} \;
cargo build --features "buildtime_bindgen" --no-default-features cargo build --features "buildtime_bindgen" --no-default-features
find $SCRIPT_DIR/target -type f -name bindgen.rs -exec cp {} $SQLITE3_LIB_DIR/bindgen_bundled_version.rs \; find $SCRIPT_DIR/target -type f -name bindgen.rs -exec cp {} $SQLITE3_LIB_DIR/bindgen_bundled_version.rs \;
# Sanity check # Sanity check