2 sed-endline = sed 's!$$!\\!'
3 sed-newline = sed 's!$$!\n!'
4 sed-quotes = sed "s!\'!\\\&!g"
5 sed-quote-line = sed 's!.*$$!\"&\"!'
7 date := $(shell date '+%d%b%y'|tr '[a-z]' '[A-Z]' )
10 # for all FILE in AT_FILES:
11 # substitute occurrences of @FILE@ with contents $(at-dir)BLA$(at-ext)
12 sed-atfiles = -e '\#' $(foreach i, $(AT_FILES), \
13 -e '/@$i@/r $(at-dir)/$i$(at-ext)' -e 's%@$i@%%g')
15 # for all VAR in ATVARIABLES
16 # substitute occurrences of @VAR@ with $(VAR)
17 sed-atvariables = -e '\#' $(foreach i, $(ATVARIABLES), -e 's!@$i@!$($i)!g')