From 87d97b143ece06d5bc3c7374081a522462be8194 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 10 Feb 2018 11:11:51 +0100 Subject: [PATCH] Fix upgrade script Avoid cleaning the whole target dir --- libsqlite3-sys/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsqlite3-sys/upgrade.sh b/libsqlite3-sys/upgrade.sh index 9d24cf0..198cd2d 100755 --- a/libsqlite3-sys/upgrade.sh +++ b/libsqlite3-sys/upgrade.sh @@ -16,7 +16,7 @@ rm -f $SQLITE3_LIB_DIR/bindgen_bundled_version.rs SQLITE3_INCLUDE_DIR=$SQLITE3_LIB_DIR cargo update # 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 find $SCRIPT_DIR/target -type f -name bindgen.rs -exec cp {} $SQLITE3_LIB_DIR/bindgen_bundled_version.rs \; # Sanity check