created indent and comment script to standardize the code.

This commit is contained in:
skarg
2006-02-19 01:31:09 +00:00
parent d6a891f0d1
commit c80d26a894
2 changed files with 32 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
directory=${1-`pwd`}
for filename in $( find $directory -name '*.c' )
do
echo Converting $filename
ccmtcnvt $filename > /tmp/ccmtcnvt.karg
mv /tmp/ccmtcnvt.karg $filename
done
for filename in $( find $directory -name '*.h' )
do
echo Converting $filename
ccmtcnvt $filename > /tmp/ccmtcnvt.karg
mv /tmp/ccmtcnvt.karg $filename
done
+16
View File
@@ -0,0 +1,16 @@
#!/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