added bash script to clean up code
This commit is contained in:
parent
49b3649891
commit
a0f07490e3
10 changed files with 45 additions and 33 deletions
12
cleanCode.sh
Normal file
12
cleanCode.sh
Normal 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
|
||||||
|
|
Reference in a new issue