wine/tools/findfunc
2004-12-14 11:39:14 +00:00

14 lines
316 B
Bash
Executable file

#!/bin/sh
name="$1"
if [ "$name" = "" ] ; then
echo -n 'Function: '
read name;
fi
while [ "$name" != "" ]
do
find $(dirname $0)/../ -name \*.spec | xargs -l1024 grep -i $name
find $(dirname $0)/../ -name \*.[ch] | xargs grep -i "WINAPI[[:space:]]\+$name"
echo -n 'Function: '
read name
done