diff --git a/if1632/findfunc b/if1632/findfunc deleted file mode 100644 index 44eb9035b94ccd01f811da7899a901467e89b024..0000000000000000000000000000000000000000 --- a/if1632/findfunc +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh - -name="blah" - -while [ "$name" != "" ] -do - echo -n 'Function: ' - read name - grep -i $name *.spec -done diff --git a/tools/findfunc b/tools/findfunc new file mode 100755 index 0000000000000000000000000000000000000000..46a985bfc2dacc2cdad49743eb86f91352f4272c --- /dev/null +++ b/tools/findfunc @@ -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