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