lukem
a2f8083d5d
Add some subsections in the VARIABLE ASSIGNMENTS section.
...
In the "modifier description" list, show each modifier with the leading `:'.
Rationale: it's hard to search for modifiers without it, and we already do
the same thing in the -options and .makecommands lists. I now find it much
easier to find the description for a modifier in the man page.
2003-11-07 01:01:46 +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
jmc
89996408fa
Fixes from PR#23210 to eliminate use of asprintf which makes cross building
...
on non-NetBSD hosts work again
2003-10-23 15:58:29 +00:00
jdolecek
e9a93e256b
properly dottify .\" comments; this fixes output of [range] paragraph
2003-10-09 16:56:06 +00:00
sjg
d388dcd1a3
Implement :[] modifier to allow picking a range of words out of a variable.
...
Also :tW and a W flag to :C and :S to allow treating value as a single word.
Add unit tests for the above, and fix some corner cases.
Based on patches supplied by Alan Barrett <apb@cequrux.com>
2003-09-27 21:29:37 +00:00
jmmv
6c008dec3b
Add the 'e' debug flag (i.e., '-d e'): when enabled, show the "target
...
failed" and "command failed" messages added recently. These introduce
too much noise when debugging some kind of problems, specially in pkgsrc.
2003-09-10 18:04:22 +00:00
jmmv
328ce86893
Document the '-d f' flag.
2003-09-10 08:44:31 +00:00
lukem
f741d2d094
when displaying the 'Failed command:', collapse runs of whitespace in the
...
command to a single space. suggested by David Laight in private mail.
2003-09-09 16:16:02 +00:00
drochner
1a9a16338e
Remove some code which makes file lookup rely on the fact that
...
the first two directory entries are "." and "..".
This behaviour is not required by applicable standards, and
actually not provided by "coda".
Now we get the "." and ".." into the per-directiry hash tables,
but this should not hurt.
2003-09-09 14:44:35 +00:00
lukem
16cddad1c8
don't free cmdStart too early, as cmd points somewhere in there and we
...
may want cmd for error messages.
should fix [bin/22705] from itojun@
2003-09-08 23:54:54 +00:00
sjg
435f6fef84
Make empty() consider an undefined variable as empty,
...
rather than throw a syntax error.
2003-09-06 06:52:08 +00:00
wiz
91f2a1b827
Whitespace nits.
2003-09-05 06:55:46 +00:00
sjg
9ab525fdf0
Allow -V '${FOO}' to print the expanded version of FOO.
...
A side effect of adding and removing a -E option for the above is that
the cases in MainParseArgs are now ordered correctly?
2003-09-05 06:52:11 +00:00
lukem
5bb8036aeb
Also display failed target. Given
...
printf "all:\n\ttrue\n\t@false\n" | make -f -
the error output now looks like:
*** Failed target: all
*** Failed command: false
*** Error code 1
instead of just
*** Error code 1
XXX: add this support for make -j builds.
2003-09-02 23:40:11 +00:00
lukem
ea878e8983
display the command that failed.
...
this is useful if the command-line had been suppressed.
2003-09-02 12:17:40 +00:00
sjg
a41eaef46a
Hook make unit-tests into regress
2003-08-08 06:42:38 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
sjg
3dfdacc170
Avoid \a as a test of invalid separator, since if we make ksh the default
...
shell, we get different results. \x seems safe.
2003-08-01 04:57:20 +00:00
sjg
86b9a219d4
Fix for TEST_MAKE from Alan Barrett
2003-08-01 03:55:59 +00:00
sjg
3716ad7f49
Allow .SHELL: to control the shell used by compat mode too.
...
Add a shell spec for ksh - a nice portable posix shell.
Document .SHELL:
2003-08-01 00:39:52 +00:00
scw
bc25d2ab5f
Const poisoning.
2003-07-31 13:48:11 +00:00
sjg
1ebbf35953
Test behavior of commandline variable assignments.
2003-07-31 00:46:15 +00:00
sjg
82cba16bce
A couple of other places where delim should be set
2003-07-29 09:06:29 +00:00
sjg
b806b12f2d
First bug picked up by the unit tests - delim wasn't always initialized.
...
Avoid putting '\' in test case script lines since shell's like that on
SunOS insist on interpreting them.
2003-07-29 08:44:41 +00:00
sjg
e3cd1dc68c
Use single quotes to protect everything from shell's that might
...
alter the results.
2003-07-29 08:16:01 +00:00
sjg
6b9a4c9477
Regardless of the name of TEST_MAKE, force it to make in test.exp
...
to avoid needless failures.
2003-07-29 06:35:09 +00:00
sjg
db7ca3c993
Fix parsing bug for :ts - patch from Alan Barrett <apb@cequrux.com>
...
Also add simple unit-test jig (regress/usr.bin/make will use it too)
but having it local here makes inclusion in bmake simpler.
2003-07-28 22:52:10 +00:00
mrg
8c66a01dc4
build var.c with -Wno-cast-qual - gcc3.3 complains about VarWordCompare()
2003-07-26 16:04:29 +00:00
sjg
59b1f67a11
Fix merge problem with ts modifier and const correctness.
...
Need to pass nstr to VarModify.
2003-07-23 18:06:46 +00:00
wiz
aeb7902476
Bump date for tu addition; drop trailing space; sort a bit.
2003-07-16 11:34:16 +00:00
itojun
a5450bcac9
backout. make(1) either uses strcpy() to malloc'ed region (enough size),
...
or function signature prohibits us from using strlcpy().
2003-07-16 07:16:24 +00:00
itojun
06ded73d5a
we can't use snprintf here, as sizeof(pathname) is unknown
2003-07-16 07:11:29 +00:00
itojun
bd8e1178ee
strlcpy (fixed)
2003-07-15 05:39:28 +00:00
itojun
885eddc2ed
strlcpy
2003-07-15 05:38:24 +00:00
sjg
8186ad8ad9
Fix a couple of missing UNCONST's that hit bmake.
2003-07-14 21:13:48 +00:00
sjg
f1cf540a8d
Add a :ts[c] modifier to allow controlling the separator used between
...
words in a variable expansion. If 'c' is omitted no separator is used.
2003-07-14 20:39:20 +00:00
christos
6a7d20bb25
Pass WARNS=3
2003-07-14 18:19:11 +00:00
wiz
95ad95491e
Fix two minor whitespace problems.
2003-07-14 08:55:18 +00:00
wiz
664b3c96d5
Misc mdoc fixes (mostly quoting).
2003-06-26 18:21:45 +00:00
matt
78735dbbe5
For a library, only check in cmtime (children's modification) if there are
...
children. This prevents spurious out-of-date failures when you have a
rules checking for a library's existance (and no children).
2003-06-02 21:49:00 +00:00
wiz
7fbb5054ee
New sentence, new line; bump date for last.
2003-05-23 18:15:17 +00:00
christos
7ce8fa7806
PR/10917: John Hawkinson: Document $MAKE and say which one we want to be using.
2003-05-23 17:25:10 +00:00
christos
11dc6dfd26
PR/19781: Thomas Klausner: make error message not helpful on unclosed ${var:foo
2003-05-22 18:20:10 +00:00
jmmv
afa06162bc
Remove extra space in usage message.
2003-05-10 19:21:40 +00:00
sjg
414c86b6d1
math.h is not needed and including it introduces uncessary dependencies
...
on some systems.
PR: 21204
2003-04-17 15:57:52 +00:00
wiz
7b31891279
Bump date for last.
2003-04-16 09:44:07 +00:00
christos
9d921a9a8d
PR/1523: Chris Demetriou: don't count a library as built, if there is no way
...
to build it.
2003-04-08 17:46:59 +00:00
jrf
9350d70e69
Added MAKESYSPATH environment variable as per jmmv's suggestion in
...
PR 18030
2003-04-01 14:00:58 +00:00
sjg
62d1f2d214
Comment in ParseDoSrc was no longer accurate.
...
Explain the difference between handling of src node
in ParseDoSpecialSrc cf. ParseDoSrc.
2003-03-23 22:48:35 +00:00
sjg
50ca80687f
We are supposed to pass the node for our expanded src to ParseAddDep
...
for each entry in allsrc. Just like ParseDoSrc. The only difference
in handling these special expanded srcs in in the call to ParseLinkSrc.
2003-03-23 05:11:22 +00:00