summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-06-05 19:48:43 +0200
committerxengineering <me@xengineering.eu>2024-06-05 19:48:43 +0200
commit869792d4b9030e0153ae882fd2e4cb6ecab7e159 (patch)
treef36e5a364c8bfe41298fcaaa5f95434efaf431a7
parente6fc87d14aa2fcf30812b6b7bccd35dd3026631e (diff)
downloadiot-contact-869792d4b9030e0153ae882fd2e4cb6ecab7e159.tar
iot-contact-869792d4b9030e0153ae882fd2e4cb6ecab7e159.tar.zst
iot-contact-869792d4b9030e0153ae882fd2e4cb6ecab7e159.zip
tools: Add clean.sh
This allows to conveniently remove files which are not tracked in version control.
-rwxr-xr-xtools/clean.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/clean.sh b/tools/clean.sh
new file mode 100755
index 0000000..c7a4c88
--- /dev/null
+++ b/tools/clean.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+
+set -euf
+
+
+# absolute paths
+script="$(realpath $0)"
+tools="$(dirname "${script}")"
+src="$(dirname "${tools}")"
+build="${src}/build"
+pcb="${src}/pcb"
+
+
+rm -rf "$build"
+rm -f "${pcb}/fp-info-cache"
+rm -f "${pcb}/iot-contact.kicad_prl"