6 if test "$MD5" = "openssl"
9 elif test "$MD5" = "none"
11 echo "ERROR: no MD5 tool found"
16 echo "$1" | sed -e 's/} *//' -e 's/;$//'
20 echo "$1" | sed -e 's/{ *//'
44 STRUCT=`cleanstruct "$line"`
49 STRUCT=`cleanstruct "$line"`
63 ADDRESS|LIST|BUFFER|PARAMETER|BODY|ENVELOPE|HEADER)
64 BODY=`cleanbody "$BODY"`
76 echo "/* base version: $BASEVERSION" > $TMPD
81 STRUCT=`getstruct "$line"`
84 NAME=`echo $STRUCT | cut -d: -f1`
85 BODY=`echo $STRUCT | cut -d' ' -f2-`
86 echo " * $NAME:" $BODY >> $TMPD
87 TEXT="$TEXT $NAME {$BODY}"
94 MD5TEXT=`echo "$TEXT" | $MD5`
95 echo "#define HCACHEVER 0x"`echo $MD5TEXT | cut -c-8` >> $TMPD
97 # TODO: validate we have all structs