summaryrefslogtreecommitdiffstats
path: root/usr.bin/units
Commit message (Collapse)AuthorAgeFilesLines
* Convert to usr.bin/ to LIBADDbapt2014-11-251-2/+1
| | | | Reduce overlinking
* Fix structure of new tests (r268794) for usr.bin/units.jmmv2014-07-252-2/+2
| | | | | | | - Make sure the tests go into the right directory. The location was wrong so they were overwriting the bin/chown tests! - Use the right naming scheme for the test program. - Remove the svn:executable property from the shell script.
* Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-171-2/+2
| | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* units(1): Add basic testseadler2014-07-173-0/+37
| | | | Add some tests to help avoid breaking units
* units(1): Add support for output-formateadler2014-07-172-14/+50
| | | | | Add support for the output-format argument. This also exposes subtle rounding differences between GNU units and our units.
* units(1): Clean upeadler2014-07-051-18/+14
| | | | Remove unused constant. Add 'static' where able.
* units(1): Convert units.lib to use '#' instead of '/'.eadler2014-07-051-31/+31
| | | | | This allows us to run GNU units against our data files and compare the output. In addition, current units(1) does not support '/' as a comment at all.
* units: Support start of line comments with '#'eadler2014-07-052-2/+2
| | | | Modern GNU units(1) supports comments anywhere with '#' but take the easy route for now and at least support start of line # comments.
* units(1): Add 'terse' supporteadler2014-07-052-11/+24
| | | | terse output is used when calling units from another script.
* units(1): Add 'help' flageadler2014-07-042-2/+8
| | | | | - Add support for --help for compatibility - Make usage() static
* units(1): Fix man pageeadler2014-07-041-3/+5
| | | | | | Igor walks one way. I walked the other. Reported by: wblock
* units(1): add long optionseadler2014-07-042-7/+17
| | | | | | Things brings additional compatibility with units 2.10 Discussed with: wblock (man page)
* use .Mt to mark up email addresses consistently (part3)bapt2014-06-231-1/+1
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* units(1): Fix minor typoseadler2014-05-151-2/+2
| | | | Obtained From: DragonflyBSD
* units(1): call el_end()eadler2014-05-121-0/+1
| | | | Add missing el_end() call
* units(1): unbreak -f option, fix some style, increase compatibility.eadler2014-05-121-6/+4
| | | | | | - Unbreak the -f option: it was missing a ':' - gunits -V spits out more information than just its version: attempt to do so as well.
* units(1): use common functionseadler2014-05-121-3/+2
| | | | No need to replicate strdup
* units(1): don't compare pointers with 0eadler2014-04-141-1/+1
| | | | | | | For better readability, don't compare pointers with 0 or assign 0 to them. Use NULL instead. Inspired by: DragonflyBSD
* units(1): Add 'static' and sort list.eadler2014-04-141-18/+18
| | | | Inspired by: DragonflyBSD
* units(1): Add v option: verboseeadler2014-04-142-14/+39
| | | | | | | For increased compatibility with GNU units: support a -v option which produces more verbose output when spitting out the answer. GNU -v does additional work in the version, information, and check output which we do not (yet?) replicate.
* units(1): Add U optioneadler2014-04-142-4/+16
| | | | | For increased compatibility with GNU units: support a -U option which tests for the existence of the default units file and prints it to the screen.
* units(1): support reading multiple units fileseadler2014-04-141-9/+12
| | | | | GNU units(1) supports reading up to 25 -f options. We support an arbitrary number.
* units(1): parse config file after setting defaultseadler2014-04-141-1/+1
| | | | | Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode)
* units(1): add libedit supporteadler2014-04-142-19/+51
| | | | | | Add line editing and history support to units(1) via libedit. Reviewed by: bdrewery
* units(1): make -V print version instead of -veadler2014-04-072-11/+7
| | | | | | | | | | | | | | | The units program is likely little used. It is even less likely that a script will want the units program to print out its version number by passing -v. GNU units uses -V for version and -v for verbosity. Increase compatibility between these two versions (written by the same author) by switching our flag as well. Take this opportunity to remove bogus information about the version number and just call it 'FreeBSD units'. Discussed with: cperciva, rwatson
* units(1): fix spellingeadler2014-04-071-1/+1
| | | | Pointyhat to: me
* units(1): Add some some additional unitseadler2014-04-071-0/+6
| | | | Most of these are also recognized by GNU units
* add capsicum to units(1)eadler2014-03-301-0/+10
|
* units(1): Add some missing unitseadler2014-03-301-0/+3
|
* Teach units(1) that an erg and ergon are the same thing.eadler2014-03-301-0/+1
|
* Let units deal with Gas Mark and Stufe.dwmalone2014-02-061-0/+2
|
* mdoc: terminate quoted strings.joel2012-03-261-17/+17
| | | | Reviewed by: brueffer
* Add missing static keywords to units(1)ed2011-11-061-6/+6
|
* It seems when I added code for affine unit changes to units, Idwmalone2011-09-151-3/+5
| | | | | | | forgot to tell the man page we could now convert Celsius to Fahrenheit. Approved by: re (kib) MFC after: 1 month
* Add limited support for units that are related by affine ratherdwmalone2008-08-162-22/+63
| | | | | | | | | | | | | than linear relations. We can now convert degC to degF. 586 units, 56 prefixes You have: 24 degC You want: degF 75.2 You have: degC You want: K (-> x*1 +273.15) (<- y*1 -273.15)
* - acificfrancexchange -> pacificfrancexchangeedwin2008-08-071-1/+3
| | | | | | - Add comments about the pegged currencies. Submitted by: GeJ on #bsdports
* Update the units library file.edwin2008-08-071-104/+195
| | | | | | | | | | | | | | - Merge changes from NetBSD and OpenBSD. - Add the Euro as a primitive unit, add old converted currency and pegged currency (Obtained from Wikipedia) - Rename "dollar" to "usdollar" as primitive unit, remove non-pegged currency and add pegged currency (Obtained from Wikipedia) - Updated the accuracy of a lot of constants (Obtained from Wikipedia) PR: bin/106545 bin/88252 Submitted by: trasz<trasz@pin.if.uz.zgora.pl>, J Vinopal <banshee@abattoir.com> Approved by: bde@ (mentor) MFC after: 1 week
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-7/+7
|
* Mechanically kill hard sentence breaks.ru2004-07-021-19/+40
|
* mdoc(7): Fixed list types.ru2004-07-021-2/+2
|
* Use miligram rather than mg in the definition of carats.dwmalone2004-05-301-2/+2
| | | | | PR: 61451 Submitted by: Tony Monroe <tmonroe+freebsd@nog.net>
* Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, andmph2003-11-051-0/+3
| | | | | | | solar radii. The corresponding masses (m_earth, etc.) were already present. Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie.
* Add the British hundredweight (brhundredweight). For discussion, see:tom2003-07-011-0/+7
| | | | | | | | | | | | http://london.pm.org/pipermail/london.pm/Week-of-Mon-20030630/019926.html For a definition, see: http://www.bartleby.com/61/55/H0325500.html Also add some more computing terms described at: http://www.wikipedia.org/wiki/Integral_data_type Reviewed by: dwmalone MFC after: 2 weeks
* Add enough consts to keep everyone happy.dwmalone2002-07-281-1/+1
|
* The rate between EUR and USD has never been as large as our old valuejoerg2002-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
* Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.joe2001-12-181-0/+3
| | | | | Submitted by: banshee <banshee@pork.abattoir.com> MFC after: 7 days
* Install files via FILES.ru2001-12-171-4/+2
|
* WARNS=2 is going to become the default, so remove it from here.markm2001-12-111-1/+0
|
* Remove whitespace at EOL.dd2001-07-151-12/+12
|
OpenPOWER on IntegriCloud