Make findfunc look for .spec files, and put it with the other tools.

This commit is contained in:
Lawson Whitney 2000-10-13 23:06:40 +00:00 committed by Alexandre Julliard
parent b111b6d28f
commit 471323665d
2 changed files with 13 additions and 10 deletions

View File

@ -1,10 +0,0 @@
#! /bin/sh
name="blah"
while [ "$name" != "" ]
do
echo -n 'Function: '
read name
grep -i $name *.spec
done

13
tools/findfunc Executable file
View File

@ -0,0 +1,13 @@
#!/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
echo -n 'Function: '
read name
done