aboutsummaryrefslogtreecommitdiffstats
path: root/indent.sh
diff options
context:
space:
mode:
authorgeronet <geronet@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-25 13:36:33 +0000
committergeronet <geronet@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-25 13:36:33 +0000
commitf5ca09365013ad01f33db2d2f58b222d6391b38d (patch)
tree14f52fa897c91489fa612827ff7bbdab42cf0d7b /indent.sh
parentc5130183e05c6dcb274b6341a05f496acf64aa1f (diff)
downloadlcd4linux-f5ca09365013ad01f33db2d2f58b222d6391b38d.tar.gz
[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
Diffstat (limited to 'indent.sh')
-rwxr-xr-xindent.sh9
1 files changed, 8 insertions, 1 deletions
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