1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/bin/bash echo Performing clean function clean { rm -rf CMakeCache.txt rm -rf CMakeFiles rm -rf cmake_install.cmake rm -rf Makefile rm -rf install_manifest.txt rm -rf *.so for i in `ls`; do if [ -d $i ]; then cd $i; clean; cd .. fi done } clean