Files
bacnet_stack/bacnet-stack/indent.sh
T
2006-02-19 12:59:48 +00:00

24 lines
461 B
Bash
Executable File

#!/bin/sh
# indent uses a local indent.pro file if it exists
# echo "-kr -nut -nlp" > .indent.pro
directory=${1-`pwd`}
for filename in $( find $directory -name '*.c' )
do
echo Indenting $filename
indent -kr -nut -nlp $filename
done
for filename in $( find $directory -name '*.h' )
do
echo Indenting $filename
indent -kr -nut -nlp $filename
done
for filename in $( find $directory -name '*~' )
do
echo Removing backup $filename
rm $filename
done