diff options
| author | Tomas Chvatal (scarabeus) <tomas.chvatal@gmail.com> | 2008-10-03 23:13:24 +0200 |
|---|---|---|
| committer | Tomas Chvatal (scarabeus) <tomas.chvatal@gmail.com> | 2008-10-03 23:13:24 +0200 |
| commit | aa7894897859143e9be01d47e1a0937c198d9c98 (patch) | |
| tree | e4ad2d77cee72a321357980805fc726e7429d794 | |
| parent | b925bcd3fda6a1cc5b7e1c0d79e168598128a6e3 (diff) | |
Fixup little bit clean.sh script.
| -rwxr-xr-x | clean.sh | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -1,15 +1,11 @@ -#!/bin/sh +#!/usr/bin/env bash make clean -rm -rf CMakeCache.txt \ - CMakeFiles \ - cmake_install.cmake \ - cmake_uninstall.cmake \ - Makefile \ - install_manifest.txt \ - data/tuxanci.desktop \ - src/base/path.h \ - {data,po}/{CMakeFiles,Makefile,cmake_install.cmake} \ - data/{arena,conf,font,images,music,sound}/{CMakeFiles,Makefile,cmake_install.cmake} \ - src/{CMakeFiles,cmake_install.cmake,Makefile,modules/{CMakeFiles,cmake_install.cmake,Makefile}} +# remove folders +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 |xargs -i rm {} -rf +# remove precompiled in files +find ./ -name \*.in -print |while read r; do rm -rf ${r/\.in/}; done |