BSD 4_4 release
[unix-history] / usr / src / old / refer / hunt / hunt8.c
index 8aa9568..7d17fcc 100644 (file)
@@ -1,9 +1,16 @@
+/*-
+ * This module is believed to contain source code proprietary to AT&T.
+ * Use and redistribution is subject to the Berkeley Software License
+ * Agreement and your Software Agreement with AT&T (Western Electric).
+ */
+
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)hunt8.c     4.3 (Berkeley) %G%";
-#endif
+static char sccsid[] = "@(#)hunt8.c    4.5 (Berkeley) 4/18/91";
+#endif /* not lint */
 
 #include <stdio.h>
 #include <assert.h>
 
 #include <stdio.h>
 #include <assert.h>
+#include "pathnames.h"
 #define unopen(fil) {if (fil!=NULL) {fclose(fil); fil=NULL;}}
 
 extern long indexdate, gdate();
 #define unopen(fil) {if (fil!=NULL) {fclose(fil); fil=NULL;}}
 
 extern long indexdate, gdate();
@@ -13,7 +20,7 @@ char *s;
 {
        /* make a file suitable for fgrep */
        char tmp[200];
 {
        /* make a file suitable for fgrep */
        char tmp[200];
-       sprintf(tmp, "/usr/lib/refer/mkey '%s' > '%s.ig'", s,s);
+       sprintf(tmp, "%s '%s' > '%s.ig'", _PATH_MKEY,s,s);
        system(tmp);
 }
 
        system(tmp);
 }