Commit Graph

124 Commits

Author SHA1 Message Date
christos
8a4a35b9bc - don't eat the rest of the string when no match in patsubst
- include the pattern in the error printing of regex
- handle 3 argument and empty patterns the gnu way
- add support for freezing and thawing state (not working yet)
2016-01-16 16:59:18 +00:00
christos
bf45a83338 - declarations for real/fake freeze
- add new flags
2016-01-16 16:57:29 +00:00
christos
50b61022b2 More gnu compatibility:
- handle macros > $9
	- handle character remapping the the gnu way.
Add a shortcut for the "fake freeze" files to not expand include macros
during thawing.
2016-01-16 16:56:21 +00:00
christos
42e28dd7ad use strtoi instead of strtonum, since this is a tool. 2015-01-29 19:26:20 +00:00
christos
b3decb4766 latent strtonum removal. 2015-01-29 13:20:51 +00:00
christos
fff8579aad delete extern 2015-01-29 03:27:06 +00:00
joerg
1382c4d712 Don't depend on yacc skeleton to include sys/cdefs.h early. 2015-01-04 18:31:09 +00:00
dholland
c3ab26950f Rework /usr/share/doc.
Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
2014-07-05 19:22:02 +00:00
wiz
0eb3a654b0 Better document eval, mentioning optional second and third arguments.
Requested by martin.
Bump date.
2014-01-07 13:32:21 +00:00
christos
9f630f8bc1 avoid redefinitions 2013-10-18 20:19:36 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
christos
3d8af4cc0a Fix wrong loop index leading to infinite loop
ifdef(`FOO',
# FOO
)
XXX: Pullup to 6.
2012-04-25 18:23:58 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
matt
d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
joerg
66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
joerg
f0f23e661a Move usage and onintr to make them static. Add __dead as needed. 2011-09-06 18:16:01 +00:00
dholland
879c64122d Requires stdint.h. 2011-08-21 23:38:43 +00:00
christos
42ff0d2ac9 kill gcc-4.5 warning 2011-08-14 12:59:25 +00:00
mrg
5ed322d90a apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
joerg
de7d5b1342 Doesn't need input. 2011-05-24 12:32:36 +00:00
riz
802dd4220f Revert previous, to fix build on Mac OS X again.
ok christos@
2011-03-08 23:55:19 +00:00
christos
a469df4a1b add other os support from MirBSD 2011-03-05 16:38:46 +00:00
christos
5a8a9e34c6 add mimic_gnu for eval print. 2011-03-05 16:38:25 +00:00
christos
0b915be387 use TOKEN_LINE from MirBSD 2011-03-05 16:37:50 +00:00
joerg
25206905a3 Improve/fix/deuglify markup. 2010-05-14 17:14:28 +00:00
joerg
98712b66ed Fix __progname mess. 2009-11-06 15:13:27 +00:00
joerg
c2ab44f7a7 Always define _PATH_DIVNAME to the Unix version. Drop UNIQUE.
Fixes build on Mac OS X.
2009-10-31 23:25:04 +00:00
joerg
0a4531336b Fix markup. 2009-10-30 01:40:45 +00:00
christos
2853bbf4b7 use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
christos
cbf0b9da9a more no unput 2009-10-28 21:42:47 +00:00
christos
350212331d Handle nbtools build better. 2009-10-28 12:59:24 +00:00
christos
c6ea3d2acf fix the tools build 2009-10-26 21:16:49 +00:00
christos
315c7490d2 fix compilation. 2009-10-26 21:14:18 +00:00
christos
7b2c561b05 fix prototype 2009-10-26 21:12:47 +00:00
christos
f3efdb75c5 resolve conflicts. 2009-10-26 21:11:28 +00:00
christos
71dafaa1f2 Import new m4 from OpenBSD. 2009-10-26 21:08:59 +00:00
lukem
c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
joerg
cbebb4f578 Don't break scope for .Oo/.Oc to workaround ancient argument limit. 2009-03-10 13:46:43 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
lukem
c9c455bf1d Convert to using raise_default_signal(3). 2007-10-05 07:36:45 +00:00
mrg
4a55b2ff97 exp() -> m4_exp(). 2006-05-11 01:22:20 +00:00
drochner
de89d2ef8d s|expr|eval|g, to make the test portable 2005-10-06 17:38:09 +00:00
drochner
a908ca7d51 merge in FreeBSD's rev.1.14:
Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.
2005-10-06 17:28:33 +00:00
drochner
04e008c8e1 import a test for arithmetic expressions from FreeBSD 2005-10-06 17:23:23 +00:00
he
07b1fe6a3e Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it).

Reviewed by lukem.
2005-06-07 09:25:00 +00:00
dsl
108eb2ab42 Add (unsigned char) cast to ctype functions 2004-10-30 20:39:35 +00:00
mycroft
c5817e14e3 Fix a core dump. 2004-07-06 13:19:42 +00:00
jmc
b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
lukem
171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00