From 013ae54851fa282d6636321f29abc445f2060530 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 3 Oct 2019 17:28:19 +0200 Subject: ptxdist: improve variable printing This adds a new 'printnext' command. It prints the value of the value of the variable. The print code is refactored to allow this. The make error must be parsed to determine which variable is undefined. Signed-off-by: Michael Olbrich --- doc/ref_parameter.inc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/ref_parameter.inc') diff --git a/doc/ref_parameter.inc b/doc/ref_parameter.inc index 18ea01ae2..74689b9d3 100644 --- a/doc/ref_parameter.inc +++ b/doc/ref_parameter.inc @@ -224,6 +224,15 @@ Misc Actions with the given name. If none exists, it will run make on all selected package rules, determine if a variable with the given name is known to make, and if so, print it. + For make variables, can contain '%'. In this case, all variables + that match the pattern are printed. + If the is undefined, then an error will be generated unless '-k' is + used. In that case an empty value is returned. + +``printnext `` + assume that the contents of is another variable and print the + contents of this variable. Shell variables are currently not checked here. + All other rules for ``print`` apply. ``list-packages`` print a list of all selected packages. This list does not include the -- cgit v1.2.3