From 471323665d6a5abd7ff865787268dd993590c44c Mon Sep 17 00:00:00 2001
From: Lawson Whitney <lawson_whitney@juno.com>
Date: Fri, 13 Oct 2000 23:06:40 +0000
Subject: [PATCH] Make findfunc look for .spec files, and put it with the other
 tools.

---
 if1632/findfunc | 10 ----------
 tools/findfunc  | 13 +++++++++++++
 2 files changed, 13 insertions(+), 10 deletions(-)
 delete mode 100644 if1632/findfunc
 create mode 100755 tools/findfunc

diff --git a/if1632/findfunc b/if1632/findfunc
deleted file mode 100644
index 44eb9035b94..00000000000
--- 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 00000000000..46a985bfc2d
--- /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
-- 
GitLab