Files
archived-lcd4linux/indent.sh
reinelt 5ec6cf452b [lcd4linux @ 2006-02-27 08:12:34 by reinelt]
use serdisplib's full color support

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@651 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-02-27 08:12:34 +00:00

16 lines
256 B
Bash
Executable File

#! /bin/bash
# -kr Use Kernighan & Ritchie coding style.
# -l120 Set maximum line length for non-comment lines to 150.
rm *.c~ *.h~
indent -kr -l120 *.c *.h
for i in *.c *.h; do
if !(diff -q $i $i~); then
rm $i~
else
mv $i~ $i
fi
done