summaryrefslogtreecommitdiff
path: root/scripts/cleanProject.sh
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-02-01 02:02:34 +0100
committercyBerta <cyberta@riseup.net>2021-02-01 04:26:02 +0100
commiteba2108802a4b6251419b02c2f0ca47c0a701653 (patch)
treeea8a367135749d0012be6a4c78e4284e679e93e7 /scripts/cleanProject.sh
parent9da1dd82ebb8778619a79bd9a896d1dff2fac0e1 (diff)
make sure ./prepareForDistribution.sh can be called from project root folder and the scripts folder
Diffstat (limited to 'scripts/cleanProject.sh')
-rwxr-xr-xscripts/cleanProject.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/cleanProject.sh b/scripts/cleanProject.sh
index 703788cc..058ef20e 100755
--- a/scripts/cleanProject.sh
+++ b/scripts/cleanProject.sh
@@ -1,12 +1,15 @@
#!/bin/bash
+SCRIPT_DIR=$(dirname "$0")
+BASE_DIR="$SCRIPT_DIR/.."
+
git checkout -- \*
git checkout -- \.\*
-rm -r ./ics-openvpn
-rm -r ./build
-rm -r ./app/build
-rm -r ./go/lib/*
-rm -r ./currentReleases
+rm -r $BASE_DIR/ics-openvpn
+rm -r $BASE_DIR/build
+rm -r $BASE_DIR/app/build
+rm -r $BASE_DIR/go/lib/*
+rm -r $BASE_DIR/currentReleases
git submodule sync --recursive
git submodule update --init --recursive