diff --git a/scripts/clean_build_artifacts.sh b/scripts/clean_build_artifacts.sh new file mode 100755 index 0000000..52f6d24 --- /dev/null +++ b/scripts/clean_build_artifacts.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Nim-RocksDB +# Copyright 2018-2024 Status Research & Development GmbH +# Licensed under either of +# +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) +# * GPL license, version 2.0, ([LICENSE-GPLv2](LICENSE-GPLv2) or https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) +# +# at your option. This file may not be copied, modified, or distributed except according to those terms. + +set -e + +cd "$(dirname "${BASH_SOURCE[0]}")"/.. + +rm -rf build +make -C vendor/rocksdb clean + +git submodule foreach --recursive git clean -fdx