donate -> docs

This commit is contained in:
Kjeld Schouten-Lebbing
2022-08-12 13:11:35 +02:00
parent b07322e846
commit 768c6c78f8
3 changed files with 6 additions and 7 deletions
+3 -3
View File
@@ -271,10 +271,10 @@ include_questions(){
/# 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
# Replace # Include{donate} with the standard donate codesnippet
# Replace # Include{documentation} with the standard documentation 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
/# Include{documentation}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/documentation.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
}
export -f include_questions