summaryrefslogtreecommitdiff
path: root/scripts/cleanProject.sh
blob: 0a354b66d5b60e773be65ccb4a6a6a725f078b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

SCRIPT_DIR=$(dirname "$0")
BASE_DIR="$SCRIPT_DIR/.."

git checkout -- \*
git checkout -- \.\*

git clean -xfd
git submodule foreach --recursive git clean -xfd
rm -r $BASE_DIR/ics-openvpn
rm -r $BASE_DIR/build
rm -r $BASE_DIR/app/build
rm -r $BASE_DIR/bitmask-core-android/lib/*
rm -r $BASE_DIR/bitmask-core-android/golang/
rm -r $BASE_DIR/currentReleases
#rm -r $BASE_DIR/tor-android/build
#rm -r $BASE_DIR/tor-android/tor-android-binary/build
#rm -r $BASE_DIR/tor-android/external/bin
#rm -r $BASE_DIR/tor-android/external/include/
#rm -r $BASE_DIR/tor-android/external/*.build-stamp
#rm -r $BASE_DIR/tor-android/external/lib
rm -r $BASE_DIR/tor-android
git reset --hard
git submodule foreach --recursive git reset --hard HEAD
git submodule sync --recursive
git submodule update --init --recursive