forked from mirrors/gstreamer-rs
fix.sh: Incorporate reformat.sh
From https://github.com/gtk-rs/gir-files/blob/master/reformat.sh
This commit is contained in:
parent
8bc2cbd6b5
commit
115d2ce8ba
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -x -e
|
||||
|
||||
# https://github.com/gtk-rs/gir-files/blob/master/reformat.sh
|
||||
# `///` used as `//` not works in Windows in this case
|
||||
for file in *.gir; do
|
||||
xmlstarlet ed -P -L \
|
||||
-d '//_:doc/@line' \
|
||||
-d '//_:doc/@filename' \
|
||||
-d '///_:source-position' \
|
||||
"$file"
|
||||
done
|
||||
|
||||
# replace wayland structures to gpointers
|
||||
xmlstarlet ed --pf --inplace \
|
||||
--update '//*[@c:type="wl_display*"]/@c:type' \
|
||||
|
|
Loading…
Reference in a new issue