Update build-catalog.sh
Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
parent
d99a7f1906
commit
85278e9a77
|
@ -271,6 +271,11 @@ include_questions(){
|
||||||
/# Include{resources}/ { for (i=0;i<n;++i) print a[i]; next }
|
/# Include{resources}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
1' templates/questions/resources.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
1' templates/questions/resources.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||||
|
|
||||||
|
# Replace # Include{donate} with the standard donate codesnippet
|
||||||
|
awk 'NR==FNR { a[n++]=$0; next }
|
||||||
|
/# Include{donate}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||||
|
1' templates/questions/donate.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||||
|
|
||||||
}
|
}
|
||||||
export -f include_questions
|
export -f include_questions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue