root/branches/volker_dev/indent.sh
| Revision 729, 273 bytes (checked in by michael, 2 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #! /bin/bash |
| 2 | |
| 3 | # $Id$ |
| 4 | # $URL$ |
| 5 | |
| 6 | |
| 7 | # -kr Use Kernighan & Ritchie coding style. |
| 8 | # -l120 Set maximum line length for non-comment lines to 150. |
| 9 | |
| 10 | rm *.c~ *.h~ |
| 11 | indent -kr -l120 *.c *.h |
| 12 | |
| 13 | for i in *.c *.h; do |
| 14 | if !(diff -q $i $i~); then |
| 15 | rm $i~ |
| 16 | else |
| 17 | mv $i~ $i |
| 18 | fi |
| 19 | done |
Note: See TracBrowser
for help on using the browser.
