#! /bin/sh

# Print definition of $1 in $2.

INCFILE=${2}
DEF=${1}
TMP=tmp${$}.c

echo "#include \"$INCFILE\"" >$TMP
echo __finger_tag__ $DEF >>$TMP

cc -E $TMP | fgrep __finger_tag__ | sed -e 's/[\" ]//g' -e 's/[ ]*__finger_tag__[ ]*//g'
rm -f $TMP
