#!/bin/sh

OFFSET=`grep "\b$2\b" $1 |cut -d' ' -f1`
if ! [ -z $OFFSET ]; then
	echo "#define $3 0x$OFFSET"
fi

