4 LC_ALL
=C
; export LC_ALL
5 LC_COLLATE
=C
; export LC_COLLATE
9 echo "Usage: $0 awk [-h headerdefine] outputheader proto_obj"
18 headeropt
="-v headername=$2"
26 headertmp
="$header.$$.tmp~"
28 proto_src
="`echo $@ | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort | uniq | egrep -v 'tdb/|wrapped|modules/getdate' | egrep -v '\.a$'`"
32 mkdir
-p `dirname $header`
35 -f script
/mkproto.
awk $proto_src > $headertmp
37 if cmp -s $header $headertmp 2>/dev
/null
39 echo "$header unchanged"