summaryrefslogtreecommitdiff
path: root/usr.bin/whereis
Commit message (Collapse)AuthorAgeFilesLines
* Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | Notes: svn path=/projects/bmake/; revision=248169
* Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | Notes: svn path=/projects/bmake/; revision=246868
* Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Reencode files from latin1 to UTF-8.Ulrich Spörlein2011-12-302-2/+2
| | | | | | | | | | This makes a tiny percentage of entries in calendars ugly for latin1 users, but fixes them for UTF-8 users. This badly needs a solution involving locale-dependent re-encoding. Notes: svn path=/head/; revision=228991
* Mark global functions and/or variables in whereis(1) static where possible.Ed Schouten2011-11-061-16/+16
| | | | | | | This allows compilers and static analyzers to more thorough analysis. Notes: svn path=/head/; revision=227244
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Make the search for sources in PATH_PORTS more accurate. I onlyJoerg Wunsch2008-06-201-2/+21
| | | | | | | | | | | | | noticed that a "whereis -qs qemu" matched the distfiles subdir of qemu rather than /usr/ports/emulators/qemu. It now ignores all dot entries in /usr/ports, plus all entries starting with a capital letter (maintenance stuff like Templates, but also includes subdir CVS), plus /usr/ports/distfiles which is simply a magic name in that respect. Notes: svn path=/head/; revision=179888
* Remove unused variables.Stefan Farfeleder2005-04-091-2/+1
| | | | Notes: svn path=/head/; revision=144840
* Fixed usage().Ruslan Ermilov2005-02-101-2/+3
| | | | Notes: svn path=/head/; revision=141657
* Let bsd.prog.mk set SRCS and MAN to their default values.Ruslan Ermilov2005-01-281-1/+0
| | | | Notes: svn path=/head/; revision=140941
* Respect locale settings from the environment.Tim J. Robbins2004-07-151-0/+3
| | | | Notes: svn path=/head/; revision=132198
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-6/+12
| | | | Notes: svn path=/head/; revision=131491
* Adjust max WARNs for sparc64.David E. O'Brien2002-12-301-2/+1
| | | | Notes: svn path=/head/; revision=108436
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-3/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107276
* Use correct document date for the -a option.Johan Karlsson2002-08-221-1/+1
| | | | Notes: svn path=/head/; revision=102247
* Add the -a option to report all matches instead of only theJohan Karlsson2002-08-223-57/+145
| | | | | | | | | first of each requested type. Approved by: joerg, sheldonh (mentor) Notes: svn path=/head/; revision=102246
* Correctly handle empty path arguments, e.g., whereis -S -f biff.Johan Karlsson2002-08-181-7/+3
| | | | | | | Approved by: joerg, sheldonh (mentor) Notes: svn path=/head/; revision=102072
* Define all paths in pathnames.hJohan Karlsson2002-07-252-2/+6
| | | | | | | Approved by: joerg, sheldonh (mentor) Notes: svn path=/head/; revision=100691
* Teach whereis(1) about games.Johan Karlsson2002-07-243-5/+9
| | | | | | | Approved by: joerg, sheldonh (mentor) Notes: svn path=/head/; revision=100608
* The .Nm utilityPhilippe Charnier2002-07-141-1/+1
| | | | Notes: svn path=/head/; revision=99970
* Complete rewrite, once again.Joerg Wunsch2002-07-115-339/+720
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=99821
* Restore copyright and RCSID.Johan Karlsson2002-07-041-6/+11
| | | | | | | | | | Remove duplicate $FreeBSD$, $NetBSD$. Submitted by: mike Approved by: sheldonh (mentor) Notes: svn path=/head/; revision=99406
* Switch to c versionJohan Karlsson2002-07-031-1/+1
| | | | | | | Approved by: sheldonh (mentor) Notes: svn path=/head/; revision=99378
* compact synopsisJohan Karlsson2002-07-032-3/+2
| | | | | | | | | | s/program [program ...]/program .../ s/program [...]/program .../ Approved by: sheldonh (mentor) Notes: svn path=/head/; revision=99377
* Remove -p flag.Johan Karlsson2002-07-032-33/+16
| | | | | | | | | | | | OpenBSD's implementation lacks -p, and we don't want to support the option now, only to lose it if/when we later switch to OpenBSD's implementation. This functionality is provided by which(1). Approved by: sheldonh (mentor) Notes: svn path=/head/; revision=99376
* Add __FBSDID.Johan Karlsson2002-07-031-7/+2
| | | | | | | | | Remove __COPYRIGHT, __RCSID which caused an assembler warning. Approved by: sheldonh (mentor) Notes: svn path=/head/; revision=99375
* Change to NetBSDs version of whereis.Johan Karlsson2002-07-032-86/+160
| | | | | | | | Approved by: sheldonh (mentor) Obtained from: NetBSD Notes: svn path=/head/; revision=99373
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* beforeinstall -> SCRIPTS.Ruslan Ermilov2001-04-071-4/+1
| | | | Notes: svn path=/head/; revision=75286
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+3
| | | | Notes: svn path=/head/; revision=74848
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-1/+1
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68963
* mdoc(7) police: use certified section headers wherever possible.Ruslan Ermilov2000-11-171-1/+1
| | | | Notes: svn path=/head/; revision=68854
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Don't strip trailing .suffixes from filenames. Although obviouslyTim Vanderhoek1999-06-212-5/+6
| | | | | | | | | | intentional, this behaviour is far too obnoxious given the number of filenames such as rpc.statd we have. Submitted by: Chris Costello [3]chris@calldei.com (bin/11303) Notes: svn path=/head/; revision=48086
* Also look in /usr/src/contrib.David E. O'Brien1998-10-041-3/+3
| | | | | | | | PR: bin/7835 Submitted by: Stephen J. Roznowski <sjr@home.net> Notes: svn path=/head/; revision=39945
* Sort cross references.Wolfram Schneider1998-08-311-2/+2
| | | | Notes: svn path=/head/; revision=38702
* Add cross references for find(1), locate(1), whereis(1) and which(1).Joseph Koshy1998-05-151-1/+3
| | | | | | | | Submitted by: Josh Gillam <josh@quick.net> PR: docs/6642 Notes: svn path=/head/; revision=36057
* Fix sysctl path /usr/sbin->/sbinAndrey A. Chernov1997-12-221-2/+2
| | | | Notes: svn path=/head/; revision=31938
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix a logico that sneaked into the manpath handling.Joerg Wunsch1996-12-231-3/+5
| | | | | | | | | | Turn off error messages from locate(1), we can't do very much about its database not being ok anyway at this time. Closes PR # bin/2183: whereis returns environ... Notes: svn path=/head/; revision=20869
* A totally revamped whereis(1), bringing back all the functionality ofJoerg Wunsch1996-06-154-130/+332
| | | | | | | | | | | the 4.3BSD command. Rewritten from scratch after the old man page, taking account for the different situation with man pages and source tree hierarchy (re: /usr/src/gnu) of the FreeBSD project. Reviewed by: wosch (actually loooong time ago) Notes: svn path=/head/; revision=16385
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+183
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590