donate -> docs

This commit is contained in:
Kjeld Schouten-Lebbing 2022-08-12 13:11:35 +02:00
parent b07322e846
commit 768c6c78f8
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99
3 changed files with 6 additions and 7 deletions

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

View File

@ -22,4 +22,3 @@
# schema:
# type: boolean
# default: true

View File

@ -363,10 +363,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 resources codesnippet
# Replace # Include{documentation} with the standard resources 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