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

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

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

rm -r $BASE_DIR/ics-openvpn
rm -r $BASE_DIR/build
rm -r $BASE_DIR/app/build
rm -r $BASE_DIR/bitmaskcore/lib/*
rm -r $BASE_DIR/bitmaskcore/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
git submodule foreach --recursive git reset --hard HEAD
git submodule sync --recursive
git submodule update --init --recursive