1 This is a helper program to clean unused files from a project source directory.
4 cleanmysourcetree <deletenew/keepnew> [<target directory>]
5 deletenew will cause new files and directories created during the compilation process to be deleted.
6 If no target directory is given, it defaults to the current directory.
8 ***WARNING***: As this thing invokes `rm -rf` on directories, you might want to run it
9 under a different user. In particular if some build process decides to replace an
10 existing folder with a symlink, things could perhaps get nasty.
12 Empty directories will not be removed automatically. If you want to get rid of them, run this in the source tree:
14 find . -type d -empty -delete
16 This code depends on the uthash library, or whatever you want to call that thing.
18 The idea for this comes from Joshua J. Drake (jduck).