mirror of
https://github.com/tauri-apps/gir-files.git
synced 2026-01-31 00:45:15 +01:00
[ from https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/676/diffs?commit_id=27ff7b74eb95bda7cdfe769ea34c9689e005135d ] When deleting elements -P/--pf preserves whitespace in front of the elements, creating tons of unnecessary trailing whitespace on otherwise-empty lines.
12 lines
215 B
Bash
Executable File
12 lines
215 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e
|
|
|
|
# `///` used as `//` not works in Windows in this case
|
|
for file in *.gir; do
|
|
xmlstarlet ed -L \
|
|
-d '//_:doc/@line' \
|
|
-d '//_:doc/@filename' \
|
|
-d '///_:source-position' \
|
|
"$file"
|
|
done
|