| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=146562
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
set the current shell to DEFSHELL. Put all these specifications into
a list. Add user specified new shells to this list. If the user
just selects one of the already know shells just pick the right one
off the list. This let's one do something like:
# Full specification of the user's shell. This also selects the shell.
.SHELL: name=myshell path=/somewhere/foo echo=loud ...
FOO != bar # use myshell here
.SHELL: name=sh
BAR != baz # use /bin/sh here
.SHELL: name=myshell # no need for full spec here.
# continue to use the user's special shell.
Notes:
svn path=/head/; revision=146560
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
the list of shell builtins. Both of these are needed for the compat
mode where make directly executes commands if the command line contains
neither a shell meta character nor a shell builtin. The list of builtins
is not changed, but csh has '@' added as a meta-character.
Initialize the default shell by parsing a string as one would specify
to the .SHELL target. So we get rid of the CShell clone of struct Shell which
just contained const char * where struct Shell had char *.
Add a debugging function for dumping a parsed shell description to
stdout.
Notes:
svn path=/head/; revision=146557
|
| | |
| |
| |
| |
| |
| |
| | |
It will soon be needed for the .SHELL parsing code.
Notes:
svn path=/head/; revision=146543
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
introduce a struct that holds all the information about an argument
vector and pass that around.
Author: Max Okumoto <okumoto@ucsd.edu>
Obtained from: DragonFlyBSD
Notes:
svn path=/head/; revision=146345
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
in two places. While here don't bother returning anything from
Lst_Replace - nobody ever checks the return code.
Suggested by: jmallet
Notes:
svn path=/head/; revision=146338
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Give the function one more argument to decide whether it should
print the flags like a C-expression or just space-delimited.
Notes:
svn path=/head/; revision=146184
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
get rid of sprite.h.
Obtained from: DragonFlyBSD
Notes:
svn path=/head/; revision=146177
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make sure we don't end up with shellPath beeing non-zero, but shellName
beeing zero in the error case - back out cleanly from the error.
When executing a command for macro assignment in Cmd_Exec() stuff the
path of the shell into argv[0], not the name. This makes no difference
from the functionality point of view, but allows the regression tests to
determine whether make executes the correct shell.
Notes:
svn path=/head/; revision=146174
|
| | |
| |
| |
| |
| |
| |
| | |
warnc(3) without it.
Notes:
svn path=/head/; revision=146160
|
| | |
| |
| |
| |
| |
| |
| | |
architectures.
Notes:
svn path=/head/; revision=146158
|
| | |
| |
| |
| |
| |
| |
| | |
to get rid of the last two const warnings.
Notes:
svn path=/head/; revision=146157
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.246)
Notes:
svn path=/head/; revision=146156
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
possible associated security hole.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.245)
Notes:
svn path=/head/; revision=146155
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
to get rid of a const warning.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.244)
Notes:
svn path=/head/; revision=146154
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.243)
Notes:
svn path=/head/; revision=146153
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=146152
|
| | |
| |
| |
| | |
Notes:
svn path=/head/; revision=146150
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.240)
Notes:
svn path=/head/; revision=146149
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
used so there is no need to stuff the value of .MAKE into it,
which btw isn't set for quite a while already.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.239)
Notes:
svn path=/head/; revision=146147
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
to top of main() and sort them. Make chdir_verify_path() static - it
is used only here.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.238)
Notes:
svn path=/head/; revision=146146
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.237)
Notes:
svn path=/head/; revision=146145
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
into job.c. Move retrieving of environment nearer to the place where it
is actually used and invert the preprocessor conditionals to use
positive logic.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.236)
Notes:
svn path=/head/; revision=146144
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.235)
Notes:
svn path=/head/; revision=146143
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.234)
Notes:
svn path=/head/; revision=146142
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.233)
Notes:
svn path=/head/; revision=146141
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
been two maxJobs variables: one static in job.c and one global used in
main.c and parse.c. Makeing one global out of these was the wrong way
to fix the problem. Instead rename the global one to jobLimit and keep
maxJobs static in job.c.
Suggested by: rwatson
PR: bin/72510
Notes:
svn path=/head/; revision=146140
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.232)
Notes:
svn path=/head/; revision=146134
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
could benefit from even more untwisting.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.23[01])
Notes:
svn path=/head/; revision=146133
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
gcc magic.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.229)
Notes:
svn path=/head/; revision=146132
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
the potential to handle interrupts which it doesn't currently.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.228)
Notes:
svn path=/head/; revision=146131
|
| | |
| |
| |
| |
| |
| |
| | |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.227)
Notes:
svn path=/head/; revision=146130
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
takes place in the child process in a function ProcExec(). Make sure,
that the child does not call malloc() or other potential dangerous
functions (there are still calls to Punt() in the error case that
should go away). Allocate the argv string via malloc to overcome
the non-constness bug of the execvp prototype. Change the handling of
shell meta-characters and move the builtin list near the list of shell
builtins. Both of these lists should actuall be configurable by the .SHELL
target since they depend on the shell used.
Patch: 7.21[2-9], 7.22[0-46]
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146129
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
where they actually belong to. Move the definitions of the strings
for special macros like "$*" from make.h to parse.h - they're used
only in the parser.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.211)
Notes:
svn path=/head/; revision=146066
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
default system directory into a writeable character array before passing
it to Path_Expand().
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.210)
Notes:
svn path=/head/; revision=146064
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
from globals.h into var.h.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.209)
Notes:
svn path=/head/; revision=146062
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Patch: 7.207
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146061
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
remove nonints.h.
Patch: 7.204
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146060
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move definition of parsing error levels from make.h into parse.h.
Patches: 7.202,7.203
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146059
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Patch: 7.201 (idea taken, but done differently)
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146058
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
since they are used only there.
Patch: 7.200
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146057
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
files and we are going to factor this out.
Patch: 7.199 (slightly changed)
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146056
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
results in a warning that will go away soon.
Patch: 7.198
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146054
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
context (and only in one place to substitute the .for variable). Therefor
there is no need to pass the context as a parameter.
Patch: 7.197
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146048
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Patch: 7.196
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146047
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Patch: 7.195
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146046
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
that are now used only in var.c from var.h to var.c
Patches: 7.193,7.194
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146045
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Patch: 7.192
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146039
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
take everything after -- as either a macro assignment or a target.
Note that make still reorders arguments before --: anything starting
with a dash is considered an option, anything which contains an equal
sign is considered a macro assignment and everything else a target.
This still is not POSIX with regard to the options, but it will probably
not change because it has been make's behaviour for ages.
Add a new function Var_Match() that correctly skips a macro call by just
doing the same as Var_Subst() but without producing output. This will help
making the parser more robust.
Patches: 7.190,7.191
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146038
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
only one variable and Var_Subst() which substitutes all. Split out the
test whether a variable should not be expanded into match_var().
Make access to the input string consistently using str[]. Remove two
unused functions: Var_GetTail() and Var_GetHead().
Patches: 7.184-7.189
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Notes:
svn path=/head/; revision=146027
|