]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/substitute-vars.make
Merge with master
[lilypond.git] / stepmake / stepmake / substitute-vars.make
1
2 sed-endline = sed 's!$$!\\!'
3 sed-newline = sed 's!$$!\n!'
4 sed-quotes = sed "s!\'!\\\&!g"
5 sed-quote-line = sed 's!.*$$!\"&\"!'
6
7 date := $(shell date '+%d%b%y'|tr '[a-z]' '[A-Z]' )
8 DATE = $(date)
9
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')
14
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')
18