From e36f454cd4e3ed84f02952b5582327ef3a7a4f55 Mon Sep 17 00:00:00 2001 From: web3-developer <51288821+web3-developer@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:47:14 +0800 Subject: [PATCH] Add helper script to cleanup build artifacts. (#47) --- scripts/clean_build_artifacts.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/clean_build_artifacts.sh 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