Skip to content

Commit

Permalink
Little script to help clean out git-ignored files.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettviren committed Feb 4, 2015
1 parent 2c02461 commit a68e0ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# clean out working directory of generated files based on .gitignore

topdir=$(dirname $(dirname $(readlink -f $BASH_SOURCE)))
for pattern in $(cat $topdir/.gitignore)
do
echo $pattern
rm -f $pattern
done

0 comments on commit a68e0ef

Please sign in to comment.