aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/units
Commit message (Collapse)AuthorAgeFilesLines
* Add enough consts to keep everyone happy.David Malone2002-07-281-1/+1
| | | | Notes: svn path=/head/; revision=100826
* The rate between EUR and USD has never been as large as our old valueJoerg Wunsch2002-07-091-2/+2
| | | | | | | | | | | (1.12) since the introductions as a common EU currency. Anyway, since the rate now seems to stabilize just around 1.00, fix up our value here. MFC after: 1 day Notes: svn path=/head/; revision=99644
* Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.Josef Karthauser2001-12-181-0/+3
| | | | | | | | Submitted by: banshee <banshee@pork.abattoir.com> MFC after: 7 days Notes: svn path=/head/; revision=88125
* Install files via FILES.Ruslan Ermilov2001-12-171-4/+2
| | | | Notes: svn path=/head/; revision=88064
* WARNS=2 is going to become the default, so remove it from here.Mark Murray2001-12-111-1/+0
| | | | Notes: svn path=/head/; revision=87700
* Remove whitespace at EOL.Dima Dorfman2001-07-151-12/+12
| | | | Notes: svn path=/head/; revision=79755
* Add prototypes and turn on WARNS=?2.David Malone2001-06-242-0/+19
| | | | Notes: svn path=/head/; revision=78698
* Correct a typo.Dima Dorfman2001-06-011-1/+1
| | | | | | | | PR: 22885 Submitted by: Rene de Vries <rene@tunix.nl> Notes: svn path=/head/; revision=77566
* Add some gravitational values.Eric Melville2001-05-121-0/+4
| | | | | | | Approved by: murray Notes: svn path=/head/; revision=76524
* Reverse order of from and to in order to match reality.Doug Barton2001-04-251-1/+1
| | | | | | | | PR: 26631 Submitted by: Glenn Johnson, glennpj@charter.net Notes: svn path=/head/; revision=75941
* All temperature scales are centigrades. Use "Celsius" instead.Daniel C. Sobral2001-03-011-1/+1
| | | | Notes: svn path=/head/; revision=73259
* Add missing prefix for nano, I presume this was missing 'cos of theDavid Malone2001-02-281-10/+16
| | | | | | | | | | prefix recusrion bug. Remove units which can be derived using prefixes and other units. Add new prefixes for 2^10, 2^20, etc... Notes: svn path=/head/; revision=73230
* Give units a bit of a cleanup:David Malone2001-02-281-32/+26
| | | | | | | | | | | | | | | | | 1) Fix a bug where the recursion on prefixes where if recusrion failed then the next attempt started too far along the string. 2) Up some internal limits that we were about to hit off. 3) Change the constness and signedness of some things and complete missing prototypes. 4) Remove the readerror function 'cos it could print out the wrong wrong file name. Replace it with more useful error messages. 5) Use sizeof when passing buffers to fgets. 6) Warn about empty prefix definitions. Reviewed by: iedowse Notes: svn path=/head/; revision=73229
* Correct spelling of millennium.David Malone2001-01-161-1/+1
| | | | | | | | PR: 24369 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=71104
* As far as I can tell, you have never been able to use 'ab' as a unitDavid Malone2000-12-241-1/+1
| | | | | | | name if 'a' and 'b' are unit names. You can use 'a b' though. Notes: svn path=/head/; revision=70338
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-17/+18
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: use certified section headers wherever possible.Ruslan Ermilov2000-11-171-2/+2
| | | | Notes: svn path=/head/; revision=68854
* Add 'shot', using the definition used by bars and shotglasses.Bill Fumerola2000-08-271-0/+1
| | | | Notes: svn path=/head/; revision=65138
* Don't segv when trying to add a 0-length unit name.Kris Kennaway2000-07-311-21/+20
| | | | | | | | | Some string-related cleanups inspired by OpenBSD. Reviewed by: asmodai Notes: svn path=/head/; revision=64053
* No such thing like `southamericarand' when Rand is the currency of ZA...Joerg Wunsch2000-04-181-1/+1
| | | | Notes: svn path=/head/; revision=59370
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
| | | | Notes: svn path=/head/; revision=50477
* Add euro-currency and constant rates of EMU area.Jean-Marc Zucconi1999-05-221-11/+16
| | | | | | | | PR: bin/9263 Submitted by: Timo J. Rinne <tri@freebsd.org> Notes: svn path=/head/; revision=47377
* Install using ${INSTALL}, not using `install'.Bruce Evans1998-09-201-2/+2
| | | | Notes: svn path=/head/; revision=39527
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.Philippe Charnier1998-03-231-2/+2
| | | | Notes: svn path=/head/; revision=34801
* Use err(3). Cosmetic in usage(). Rewrote man page in mdoc format.Philippe Charnier1997-08-212-115/+105
| | | | Notes: svn path=/head/; revision=28502
* Specify the full path of units.lib in the FILES section.Alexander Langer1997-05-061-2/+2
| | | | Notes: svn path=/head/; revision=25504
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-226-6/+6
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-146-6/+6
| | | | | | | | | | | 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
* Added revised manpage submitted by the author of units.Alexander Langer1996-06-101-26/+60
| | | | | | | | Reviewed by: alex Submitted by: Adrian Mariano <adrian@cam.cornell.edu> Notes: svn path=/head/; revision=16269
* Fix exit code when used in non-interactive mode.Alexander Langer1996-06-081-3/+5
| | | | | | | Remove ';' typo attached to if statement. Notes: svn path=/head/; revision=16190
* Units conversion utility courtesy of NetBSD.Alexander Langer1996-06-086-0/+1500
Submitted by: Jeremy Prior Obtained from: NetBSD Notes: svn path=/vendor/NetBSD/dist/; revision=16186