Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Simon J. Gerraty <sjg@netbsd.org>
List: source-changes
Date: 06/10/2001 05:31:01
Module Name: basesrc
Committed By: sjg
Date: Sun Jun 10 02:31:01 UTC 2001
Modified Files:
basesrc/usr.bin/make: main.c make.1 parse.c var.c
Log Message:
Simplify the exporting of VAR_CMD's via MAKEFLAGS.
We now just list the names of such variables in .MAKEOVERRIDES.
When we come to export MAKEFLAGS we quote the value of each exported variable
using :Q, using: ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
The :O:u suppresses duplicate names.
Also modifed Parse_DoVar to re-export MAKEFLAGS whenever .MAKEOVERRIDES
is assigned to so .MAKEOVERRIDES+= PATH will export PATH=${PATH:Q}
to the environment, while .MAKEOVERRIDES= will disable export of VAR_CMD's.
To generate a diff of this commit:
cvs rdiff -r1.69 -r1.70 basesrc/usr.bin/make/main.c
cvs rdiff -r1.50 -r1.51 basesrc/usr.bin/make/make.1
cvs rdiff -r1.68 -r1.69 basesrc/usr.bin/make/parse.c
cvs rdiff -r1.63 -r1.64 basesrc/usr.bin/make/var.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.