diff options
| author | xHire <xhire@tuxportal.cz> | 2008-10-04 13:49:27 +0200 |
|---|---|---|
| committer | xHire <xhire@tuxportal.cz> | 2008-10-04 13:49:27 +0200 |
| commit | e2cb2bfce3e4838b777310a03ad814b2aed68250 (patch) | |
| tree | 5bbf60f87df00a5eb6572c0caa9926bbf50873bd /clean.sh | |
| parent | caf6b6d1f9528dd6d8cd02ab6d2173a0f5df2636 (diff) | |
Development version was renamed form 'tuxanci-svn' to 'tuxanci-dev'
Compilation warnings were cleaned up
Diffstat (limited to 'clean.sh')
| -rwxr-xr-x | clean.sh | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,11 +1,17 @@ #!/usr/bin/env bash -make clean +# remove compiled files +if [ -e "Makefile" ]; then + make clean +fi + # remove folders -find ./ -type d -name CMakeFiles -print |xargs -i rm {} -rf +find ./ -type d -name CMakeFiles -print | xargs -i rm {} -rf + # remove cmake files -find ./ \( -type f -name \*.cmake -print , -type f -name CMakeCache.txt -print , -type f -name Makefile -print \) |grep -v "./cmake" |xargs -i rm {} -rf -find ./ \( -type f -name cmake_install.cmake -print , -type f -name install_manifest.txt -print \) |xargs -i rm {} -rf +find ./ \( -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 -rf ${r/\.in/}; done +find ./ -name \*.in -print | while read r; do rm -f ${r/\.in/}; done |