diff options
author | geronet <> | 2006-02-25 13:36:33 +0000 |
---|---|---|
committer | geronet <> | 2006-02-25 13:36:33 +0000 |
commit | 440ecfb4a2b273bfa1d11fc201793a98b02add51 (patch) | |
tree | 14f52fa897c91489fa612827ff7bbdab42cf0d7b /indent.sh | |
parent | cc361935c1791caee0fcb3a8dbc9e365b3ca2b87 (diff) | |
download | lcd4linux-440ecfb4a2b273bfa1d11fc201793a98b02add51.tar.gz |
[lcd4linux @ 2006-02-25 13:36:33 by geronet]
updated indent.sh, applied coding style
Diffstat (limited to '')
-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 |