1
Fork 0

added bash script to clean up code

This commit is contained in:
Joshua Moerman 2010-11-13 20:41:02 +01:00
parent 49b3649891
commit a0f07490e3
10 changed files with 45 additions and 33 deletions

12
cleanCode.sh Normal file
View file

@ -0,0 +1,12 @@
DIRS="./*.cpp ./*.hpp ./kernels/*.cpp ./kernels/*.hpp ./attractors/*.stf"
echo "This program will delete all trailing whitespaces and will replace spaces with tabs"
for file in ${DIRS}
do
echo "yay ${file}"
unexpand -t 4 ${file} | sed 's/[ \t]*$//' > ${file}.new
cat ${file}.new > ${file}
rm ${file}.new
done