diff options
author | Nao Pross <naopross@thearcway.org> | 2017-12-18 00:00:21 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-12-18 00:00:21 +0100 |
commit | 2e27a93e3ed189b4d96ec7df6e05b102dd2e841a (patch) | |
tree | 6952edd5db3b4075532c4ce75bda764d5a67051b /etc/linux-clean-tree.sh | |
parent | Update .gitignore and minor changes (mostly formatting) (diff) | |
download | OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.tar.gz OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.zip |
Replace tabs with spaces, set up CMake build system
Other changes:
- update gitignore
- build scripts under `etc`
- fix window
Diffstat (limited to '')
-rwxr-xr-x | etc/linux-clean-tree.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/etc/linux-clean-tree.sh b/etc/linux-clean-tree.sh new file mode 100755 index 0000000..80a858c --- /dev/null +++ b/etc/linux-clean-tree.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# WARNING: +# +# this script will delete *everything* that is not +# under version control +# + +POSITIONAL=() +CLEAN_ALL=false + +while [[ $# -gt 0 ]]; do + key="$1" + + case $key in + -a|--all) + CLEAN_ALL=true + shift + ;; + *) + POSITIONAL+=("$1") + shift + ;; + esac +done + +if [ "$CLEAN_ALL" = true ]; then + git clean -d -x -f +else + git clean -d -X -f +fi |