Skip to content

Commit

Permalink
Add Cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
NTX authored and NTX committed May 12, 2012
1 parent dab3248 commit 1558fcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions unix_scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
list=`/usr/bin/find ../ -name *.cpp -o -name *.h`

for i in $list; do
echo "Tab2Spaces and whitespace cleanup on "$i
perl -wpi -e "s/\t/ /g" $i
perl -wpi -e "s/ +$//g" $i
done

0 comments on commit 1558fcd

Please sign in to comment.