mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00

This will work around such errors from the g-ir-doc build:
> devel-docs/g-ir-docs/pages/python/Gimp-3.0/Gimp.checks_get_colors.page:46: parser error : EntityRef: expecting ';'
> gimp_checks_get_colors (gimp_check_type (), &color1, &color2);
> ^
Similar to commit 7123b6c466
, it cannot really be considered a proper
fix, barely a workaround for g-ir-doc-tool not even able to produce
valid XML. Here we have ampersands which it should have espaced into XML
entities.
Anyway this will do for now (until we just decide to drop the g-ir-docs
tools?).
4 lines
111 B
Bash
Executable file
4 lines
111 B
Bash
Executable file
#!/bin/sh
|
|
|
|
sed -i 's/<\(Prefix\|Image\)/\<\1/g' "$@"
|
|
sed -i 's/&\([a-z0-9_]\+[^a-z0-9_;]\)/\&\1/g' "$@"
|