bapt
8d6c7a49a6
Convert to usr.bin/ to LIBADD
...
Reduce overlinking
2014-11-25 14:29:10 +00:00
jmmv
4de5b84b65
Fix structure of new tests (r268794) for usr.bin/units.
...
- 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.
2014-07-25 01:29:22 +00:00
brooks
ea5a037d1f
Replace all uses of libncurses and libtermcap with their wide character
...
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
2014-07-17 18:24:34 +00:00
eadler
3c336ca4fd
units(1): Add basic tests
...
Add some tests to help avoid breaking units
2014-07-17 07:12:12 +00:00
eadler
0da1002132
units(1): Add support for output-format
...
Add support for the output-format argument. This also exposes subtle
rounding differences between GNU units and our units.
2014-07-17 06:54:12 +00:00
eadler
d624d3b923
units(1): Clean up
...
Remove unused constant. Add 'static' where able.
2014-07-05 03:49:20 +00:00
eadler
beac88825d
units(1): Convert units.lib to use '#' instead of '/'.
...
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.
2014-07-05 03:27:31 +00:00
eadler
839ea05fb7
units: Support start of line comments with '#'
...
Modern GNU units(1) supports comments anywhere with '#' but take the easy route for now and at least support start of line # comments.
2014-07-05 03:25:26 +00:00
eadler
739ad2052d
units(1): Add 'terse' support
...
terse output is used when calling units from another script.
2014-07-05 03:17:57 +00:00
eadler
6e29f84795
units(1): Add 'help' flag
...
- Add support for --help for compatibility
- Make usage() static
2014-07-04 22:19:21 +00:00
eadler
1058eea813
units(1): Fix man page
...
Igor walks one way. I walked the other.
Reported by: wblock
2014-07-04 21:34:48 +00:00
eadler
95eba0cb94
units(1): add long options
...
Things brings additional compatibility with units 2.10
Discussed with: wblock (man page)
2014-07-04 21:21:05 +00:00
bapt
1f77f137dc
use .Mt to mark up email addresses consistently (part3)
...
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
2014-06-23 08:23:05 +00:00
eadler
d866a82d5a
units(1): Fix minor typos
...
Obtained From: DragonflyBSD
2014-05-15 05:35:00 +00:00
eadler
5c7204b713
units(1): call el_end()
...
Add missing el_end() call
2014-05-12 07:14:09 +00:00
eadler
55915918c7
units(1): unbreak -f option, fix some style, increase compatibility.
...
- Unbreak the -f option: it was missing a ':'
- gunits -V spits out more information than just its version: attempt to do so
as well.
2014-05-12 06:14:14 +00:00
eadler
6ef45d7151
units(1): use common functions
...
No need to replicate strdup
2014-05-12 05:44:55 +00:00
eadler
c4f70eafe7
units(1): don't compare pointers with 0
...
For better readability, don't compare pointers with 0 or assign 0
to them. Use NULL instead.
Inspired by: DragonflyBSD
2014-04-14 21:09:47 +00:00
eadler
bc93c01d60
units(1): Add 'static' and sort list.
...
Inspired by: DragonflyBSD
2014-04-14 21:07:54 +00:00
eadler
9ba0aa30f1
units(1): Add v option: verbose
...
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.
2014-04-14 20:51:04 +00:00
eadler
f6ef22809d
units(1): Add U option
...
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.
2014-04-14 16:55:09 +00:00
eadler
25d8062960
units(1): support reading multiple units files
...
GNU units(1) supports reading up to 25 -f options. We support an arbitrary
number.
2014-04-14 16:43:36 +00:00
eadler
91efd84eb7
units(1): parse config file after setting defaults
...
Parse the config file after setting the defaults to permit the user to change
things (e.g., editing mode)
2014-04-14 14:40:12 +00:00
eadler
814793416f
units(1): add libedit support
...
Add line editing and history support to units(1) via libedit.
Reviewed by: bdrewery
2014-04-14 14:04:59 +00:00
eadler
ae022bf032
units(1): make -V print version instead of -v
...
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
2014-04-07 02:31:10 +00:00
eadler
5f6d95139d
units(1): fix spelling
...
Pointyhat to: me
2014-04-07 01:52:35 +00:00
eadler
ae826f75b1
units(1): Add some some additional units
...
Most of these are also recognized by GNU units
2014-04-07 01:46:30 +00:00
eadler
6e60e412c5
add capsicum to units(1)
2014-03-30 16:04:47 +00:00
eadler
022ec632e2
units(1): Add some missing units
2014-03-30 05:06:06 +00:00
eadler
1310880b9b
Teach units(1) that an erg and ergon are the same thing.
2014-03-30 04:55:33 +00:00
dwmalone
ba6351cb42
Let units deal with Gas Mark and Stufe.
2014-02-06 15:55:29 +00:00
joel
4234591b03
mdoc: terminate quoted strings.
...
Reviewed by: brueffer
2012-03-26 15:18:14 +00:00
ed
7db87786d7
Add missing static keywords to units(1)
2011-11-06 08:18:17 +00:00
dwmalone
4ad48ef959
It seems when I added code for affine unit changes to units, I
...
forgot to tell the man page we could now convert Celsius to Fahrenheit.
Approved by: re (kib)
MFC after: 1 month
2011-09-15 19:52:43 +00:00
dwmalone
0d283f41de
Add limited support for units that are related by affine rather
...
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)
2008-08-16 16:27:41 +00:00
edwin
9503a623e9
- acificfrancexchange -> pacificfrancexchange
...
- Add comments about the pegged currencies.
Submitted by: GeJ on #bsdports
2008-08-07 05:35:01 +00:00
edwin
b5d4cdc75b
Update the units library file.
...
- 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
2008-08-07 00:14:56 +00:00
ru
1541af42f1
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
ru
7f3c7f0d46
Sort sections.
2005-01-18 13:43:56 +00:00
ru
fb1d8b3724
Mechanically kill hard sentence breaks.
2004-07-02 22:22:35 +00:00
ru
cfd40890fc
mdoc(7): Fixed list types.
2004-07-02 19:37:24 +00:00
dwmalone
597e634e11
Use miligram rather than mg in the definition of carats.
...
PR: 61451
Submitted by: Tony Monroe <tmonroe+freebsd@nog.net>
2004-05-30 16:09:12 +00:00
mph
13c2e3cf4f
Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, and
...
solar radii. The corresponding masses (m_earth, etc.) were already
present.
Source: "An Introduction to Modern Astrophysics," Carroll & Ostlie.
2003-11-05 22:29:48 +00:00
tom
a8a0d26127
Add the British hundredweight (brhundredweight). For discussion, see:
...
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
2003-07-01 10:33:27 +00:00
dwmalone
8e2ebdedb2
Add enough consts to keep everyone happy.
2002-07-28 16:23:28 +00:00
joerg
53a32e18d8
The rate between EUR and USD has never been as large as our old value
...
(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
2002-07-09 08:47:03 +00:00
joe
54c092ee14
Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.
...
Submitted by: banshee <banshee@pork.abattoir.com>
MFC after: 7 days
2001-12-18 11:25:58 +00:00
ru
7ed2dfe749
Install files via FILES.
2001-12-17 16:02:15 +00:00
markm
a71a530c96
WARNS=2 is going to become the default, so remove it from here.
2001-12-11 23:27:23 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00