- gtk-doc: filter version info from html files

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=266
This commit is contained in:
Olaf Hering 2020-03-31 09:52:47 +00:00 committed by Git OBS Bridge
parent 6052501a80
commit 860fa11e3d
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 31 09:09:09 UTC 2020 - olaf@aepfle.de
- gtk-doc: filter version info from html files
-------------------------------------------------------------------
Fri Jan 10 19:16:29 UTC 2020 - olaf@aepfle.de

View File

@ -21,7 +21,7 @@ Summary: Build Result Compare Script
License: GPL-2.0+
Group: Development/Tools/Building
Url: https://github.com/openSUSE/build-compare
Version: 20200115T165709.b82e1e5
Version: 20200331T115051.28bf642
Release: 0
Source1: COPYING
Source2: same-build-result.sh

View File

@ -438,6 +438,20 @@ normalize_file()
/usr/share/gtk-doc/html/*/*.devhelp2)
# various kde and gtk packages
strip_numbered_anchors
for f in old/$file new/$file; do
sed -i -e '
/^<head>/{
: next
n
/^<\/head>/{
b end_head
}
s/^<meta name="generator" content="[^"]\+">/<meta name="generator" content="GTK-Doc V1.29 (XML mode)">/
b next
}
: end_head
' $f
done
;;
/usr/share/doc/packages/*/*.html|\
/usr/share/doc/packages/*/*/*.html|\