Lines Matching refs:nl
8 # nl-escape
10 # Usage: escape = $(call nl-escape[,escape])
16 nl-escape = $(or $(1),m822df3020w6a44id34bt574ctac44eb9f4n)
18 # escape-nl
20 # Usage: escaped-text = $(call escape-nl,text[,escape])
30 # $(call unescape-nl...)
32 escape-nl = $(subst $(newline),$(call nl-escape,$(2)),$(1))
34 # unescape-nl
36 # Usage: text = $(call unescape-nl,escaped-text[,escape])
38 # See escape-nl.
40 unescape-nl = $(subst $(call nl-escape,$(2)),$(newline),$(1))
42 # shell-escape-nl
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
54 define shell-escape-nl
55 awk 'NR==1 {t=$$0} NR>1 {t=t "$(nl-escape)" $$0} END {printf t}'
58 # shell-unescape-nl
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
74 define shell-unescape-nl
75 awk 'NR==1 {t=$$0} NR>1 {t=t "\n" $$0} END { gsub(/$(nl-escape)/,"\n",t); printf t }'
126 shell-wordify = $(if $(findstring $(newline),$(1)),$(_sw-esc-nl),$(shell-sq))
127 define _sw-esc-nl
128 "$$(echo $(call escape-nl,$(shell-sq),$(2)) | $(call shell-unescape-nl,$(2)))"
144 lookup = $(call unescape-nl,$(shell sh -c $(_l-sh)))
145 _l-sh = $(call shell-sq,command -v $(shell-sq) | $(call shell-escape-nl,))