diff options
| author | tv <tv@xso> | 2011-08-22 12:48:27 +0200 |
|---|---|---|
| committer | tv <tv@xso> | 2011-08-22 12:48:27 +0200 |
| commit | c2117a9064fcee0d287fbd8d164eef57d6b6c275 (patch) | |
| tree | 60eda265a3ee69195c86ce8d1ee16c014fd75d52 /oncology/dpfhack_display/lcd4linux/.svn/text-base/indent.sh.svn-base | |
| parent | 45ceee319c70522d821f65505735bc514d123df5 (diff) | |
| parent | 5e102279a72d77305d84f3cab9aef464a76ecb68 (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'oncology/dpfhack_display/lcd4linux/.svn/text-base/indent.sh.svn-base')
| -rw-r--r-- | oncology/dpfhack_display/lcd4linux/.svn/text-base/indent.sh.svn-base | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/oncology/dpfhack_display/lcd4linux/.svn/text-base/indent.sh.svn-base b/oncology/dpfhack_display/lcd4linux/.svn/text-base/indent.sh.svn-base new file mode 100644 index 00000000..e21a739b --- /dev/null +++ b/oncology/dpfhack_display/lcd4linux/.svn/text-base/indent.sh.svn-base @@ -0,0 +1,20 @@ +#! /bin/bash + +# $Id$ +# $URL$ + + +# -kr Use Kernighan & Ritchie coding style. +# -l120 Set maximum line length for non-comment lines to 150. +# -npro Do not read ‘.indent.pro’ files. + +rm *.c~ *.h~ 2>/dev/null # trash "no such file or directory" warning messages +indent -kr -l120 -npro *.c *.h + +for i in *.c *.h; do + if !(diff -q $i $i~); then + rm $i~ + else + mv $i~ $i + fi +done |
