root/branches/volker_dev/indent.sh

Revision 729, 273 bytes (checked in by michael, 2 years ago)

added svn properties and keywords

  • Property svn:executable set to *
  • Property svn:keywords set to Id URL
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
10rm *.c~ *.h~
11indent -kr -l120 *.c *.h
12
13for i in *.c *.h; do
14  if !(diff -q $i $i~); then
15    rm $i~
16  else
17    mv $i~ $i
18  fi
19done
Note: See TracBrowser for help on using the browser.