From f5ca09365013ad01f33db2d2f58b222d6391b38d Mon Sep 17 00:00:00 2001 From: geronet Date: Sat, 25 Feb 2006 13:36:33 +0000 Subject: [lcd4linux @ 2006-02-25 13:36:33 by geronet] updated indent.sh, applied coding style git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@647 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- indent.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'indent.sh') diff --git a/indent.sh b/indent.sh index 9885e49..3cb0e1f 100755 --- a/indent.sh +++ b/indent.sh @@ -4,5 +4,12 @@ # -l120 Set maximum line length for non-comment lines to 150. # -pmt Preserve access and modification times on output files. -indent -kr -l120 -pmt *.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 -- cgit v1.2.3