From b2708da42d3dfb5bbf7b796554eec3071c4f4f1a Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 20 Oct 2015 18:54:06 +0200 Subject: ptxdist: rework 'print' command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - avoid "recipe for target '...' failed" messages - generate '=' when running in verbose mode - produce and empty value instead of an error when "-k" is used This makes is possible to use $ ptxdist -v--k make print- print-ยท... to dump a useful list of many variables that may or may not be defined. Signed-off-by: Michael Olbrich --- bin/ptxdist | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/ptxdist b/bin/ptxdist index a878fb6ff..8af0ac839 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1971,6 +1971,9 @@ EOF fi while [ ${#} -gt 0 ]; do if [ -n "${!1}" ]; then + if [ "${PTXDIST_VERBOSE}" = "1" ]; then + echo -n "${1}=" + fi echo "${!1}" else local check -- cgit v1.2.3