diff options
author | geronet <geronet@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-02-25 13:36:33 +0000 |
---|---|---|
committer | geronet <geronet@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-02-25 13:36:33 +0000 |
commit | f5ca09365013ad01f33db2d2f58b222d6391b38d (patch) | |
tree | 14f52fa897c91489fa612827ff7bbdab42cf0d7b /indent.sh | |
parent | c5130183e05c6dcb274b6341a05f496acf64aa1f (diff) | |
download | lcd4linux-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-x | indent.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |