summaryrefslogtreecommitdiffstats
path: root/usr.bin/whereis/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2002-07-11 21:20:54 +0000
committerjoerg <joerg@FreeBSD.org>2002-07-11 21:20:54 +0000
commit1d2b625a3d41d8f930ed8a0085a7ed7857f71501 (patch)
tree54074a67ac824aae06f6ada87f8f626c5a6ab313 /usr.bin/whereis/Makefile
parentcef3a16df0278b04238363785b0c9f0db8216a33 (diff)
downloadFreeBSD-src-1d2b625a3d41d8f930ed8a0085a7ed7857f71501.zip
FreeBSD-src-1d2b625a3d41d8f930ed8a0085a7ed7857f71501.tar.gz
Complete rewrite, once again.
This is basically a ``C compilation'' of the former whereis.pl file, employing the same algorithms, and aiming at being mostly UI-compatible to the old (legally tainted) 4.3BSD whereis(1). In comparision, the 4.4BSD-Lite version is just another variant of which(1) only, where in particular the option to search for source directories is sorely missing. While i was at it, i added two more options which i contemplated doing long since. -x will suppress the run of locate(1) to find sources that could not be found otherwise, potentially saving a lot of time (but obviously, risking to not find some sources that are well hidden in the tree). -q will omit the leading name of the query, so in particular, you can now do something like: cd `whereis -qs ls` I'd explicitly like to thank johan for his review which was quite a bit more than an average review, including sending me a lot of diffs. Reviewed by: johan
Diffstat (limited to 'usr.bin/whereis/Makefile')
-rw-r--r--usr.bin/whereis/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/whereis/Makefile b/usr.bin/whereis/Makefile
index 20dcf0a..0d93791 100644
--- a/usr.bin/whereis/Makefile
+++ b/usr.bin/whereis/Makefile
@@ -2,5 +2,7 @@
PROG= whereis
MAN= whereis.1
+WARNS?= 6
+NO_WERROR= true
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud