created indent and comment script to standardize the code.
This commit is contained in:
Executable
+16
@@ -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
|
||||
|
||||
Executable
+16
@@ -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
|
||||
Reference in New Issue
Block a user