Files
archived-lcd4linux/indent.sh
T
2007-01-14 13:44:38 +00:00

20 lines
273 B
Bash
Executable File

#! /bin/bash
# $Id$
# $URL$
# -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