summaryrefslogtreecommitdiff
path: root/tools/sourceformatter
blob: 58ad4aa7b9d6835cbcc46fcadcb14f83f4fa6857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

make clean

CCFILES=`find src/ -name *.cc`
HFILES=`find src/ -name *.h`

SRCFILES="$CCFILES $HFILES"

#
# Remove trailing whitespace from lines
#

for file in $SRCFILES ; do
    sed "s/[[:space:]]*$//" $file >$file.tmp
    mv $file.tmp $file
done