blob: c04f8b92e19a24586c5cdaddc0ad05ca631dacb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#/bin/sh
error()
{
ret=$1; shift
echo "ERROR: " $@
return $ret
}
test -x ${CCCC:=/usr/local/bin/cccc} \
|| error 1 "Value of \$CCCC ($CCCC) not found."
test -d ${TOPDIR:=../../../lib} \
|| error 1 "Unable to locate \$TOPDIR ($TOPDIR)."
find $TOPDIR \( -name '*.h' -o -name '*.i' -o -name '*.hh' -o -name '*.cpp' \) -print |
while read file
do
outname=`basename $file`.cccc
$CCCC $file > $outname 2>&1
echo -n "."
done
echo
|