Browse Source

bugfix: prevent include filename from escaping first tag

tags/stw2018
paul 1 year ago
parent
commit
85c5bae22e
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      build/sources.sh

+ 3
- 1
build/sources.sh View File

@@ -135,7 +135,9 @@ auto_sources(){
| while read source; do
printf '\n### filename="%s" ###\n%s' "$source" "$(include_xml "$source")"
done \
| sed -r ':X; N; $!bX; s;\n### (filename="[^\n"]+") ###\n[^<]*(<![^>]+>[^<]*)*(<[^ ]+ );\2\3\1 ;g'
| sed -r ':X; N; $!bX;
s;\n### (filename="[^\n"]+") ###\n[^<]*(<![^>]+>[^<]*)*(<([^/>]+/)*([^/>]+))(/?>);\2\3 \1\6;g;
'
}

lang_sources(){

Loading…
Cancel
Save