diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-08 18:27:39 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-08 18:27:39 -0700 |
| commit | f1ddc12b68b4e4c8087962de25260470e6df2bea (patch) | |
| tree | 7d0440a6402a9b0ef75ded23fa64b68534255bba /scripts/clean.sh | |
| parent | 6025860a61386bf767b29c3ec5fd0d31285f1056 (diff) | |
Add tuxanci2 files
Diffstat (limited to 'scripts/clean.sh')
| -rwxr-xr-x | scripts/clean.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/scripts/clean.sh b/scripts/clean.sh deleted file mode 100755 index 461b226..0000000 --- a/scripts/clean.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash -PWD=$(pwd) -[[ ${PWD/*\//} = scripts ]] && pushd .. > /dev/null || pushd . > /dev/null -# remove compiled files -[ -e "[Mm]akefile" ] && make clean - -# remove folders -find ./ -type d -name CMakeFiles -print | xargs -i rm {} -rf -# some people build Tuxanci in speacial folder -rm -rf ./build - -# remove cmake files -find ./ \( -type f -name \*.so -print , -type f -name \*.cmake -print , -type f -name CMakeCache.txt -print , -type f -name Makefile -print \) | grep -v "./cmake" | xargs -i rm {} -f -find ./ \( -type f -name install_manifest.txt -print , -type f -name cmake_install.cmake -print \) | xargs -i rm {} -f - -# remove precompiled in files -find ./ -name \*.in -print | while read r; do rm -f ${r/\.in/}; done - -# remove compiled binaries -find ./src -name tuxanci -print | xargs -i rm {} -f -find ./src -name tuxanci-server -print | xargs -i rm {} -f - -# remove compiled gettext files -find ./ -name \*.gmo -print | xargs -i rm {} -f - -# remove temporary backup files -find ./ -type f -name \*~ -print | xargs -i rm {} -f - -# remove so libraries -find ./src/modules -type f -name mod\*.so\* | xargs -i rm {} -f -popd >> /dev/null |