summaryrefslogtreecommitdiff
path: root/regress/show-all
AgeCommit message (Collapse)AuthorFilesLines
2020-03-20show-all: fix output for list variables containing dollar charactersrillig2-11/+11
Before, variables containing dollar characters displayed so wrong that it was hard to explain. To fix the problem, I typed almost random characters into the code until the output was exactly as expected. I still do not understand: * why the list variables need 8 dollars to survive the @x@ loop, * why the code only works if the dollars come from an external variable instead of being written inline, * why the backslash in the :C modifier needs to be doubled. Anyway, the output of "bmake show-all-extract" now contains the shell variable $${extract_file}, just as it should. The dollars are now doubled in the output and thereby match the source code from the Makefile exactly.
2020-03-20regress/show-all: demonstrate wrong output of show-allrillig2-2/+30
A real-life example of this pattern is EXTRACT_CMD_DEFAULT, which refers to DOWNLOADED_DISTFILE, which is defined as "$${extract_file}". Until mk/extract/extract.mk r1.40, that argument was discarded from the output completely. With the surrounding quotes at least the quotes are visible in the output of "bmake show-all-extract".
2018-11-30regress/show-all: fix regression test after infrastructure changerillig1-1/+3
2018-11-11mk/misc: adjust layout of the show-all output to pkgsrc formatrillig2-34/+34
In Makefiles, the variable values are aligned vertically. This format is now also used in the show-all target, which makes it easier readable. Some more variables have been marked as multi-value, and single-valued variables ending in space are clearly marked. Without the latter, the regression test would have a line with significant trailing whitespace.
2018-11-10mk/misc: in show-all, list values of *_ENV and *_ARGS in separate linesrillig4-0/+112
The *_ENV and *_ARG values are typically very long, and reading them in a single line is unnecessarily difficult. Therefore, each of their values is listed on a separate line, for example: fetch: usr DIST_PATH (undefined) pkg MASTER_SITES = \ http://ftp.gnome.org/pub/GNOME/sources/glib/2.56/ \ ftp://ftp.gnome.org/pub/GNOME/sources/glib/2.56/ \ ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/glib/2.56/ \ https://download.gnome.org/sources/glib/2.56/ \ # end of MASTER_SITES pkg DIST_SUBDIR (undefined)