Skip to content

Instantly share code, notes, and snippets.

@gubatron
Created March 28, 2019 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gubatron/b589dccdf23d1d42e010853efdfe8141 to your computer and use it in GitHub Desktop.
Save gubatron/b589dccdf23d1d42e010853efdfe8141 to your computer and use it in GitHub Desktop.
cmake_clean bash script
#!/usr/bin/env bash
function rmfile() {
if [ -f $1 ]; then rm -f $1 ; fi
}
function rmdir() {
if [ -d $1 ]; then rm -fr $1; fi
}
rmfile CTestTestfile.cmake
rmfile install_manifest.txt
rmfile CMakeCache.txt
rmfile cmake_install.cmake
rmfile Makefile
rmdir CMakeFiles
rmdir cmake-build-debug
rm -f *.cbp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment