Simpler pattern in strip_numbered_anchors
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=217
This commit is contained in:
parent
eae5358f64
commit
4f6b401c2a
@ -21,7 +21,7 @@ Summary: Build Result Compare Script
|
|||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Url: https://github.com/openSUSE/build-compare
|
Url: https://github.com/openSUSE/build-compare
|
||||||
Version: 20160825T162810.b6dc062
|
Version: 20160825T182753.c18eb00
|
||||||
Release: 0
|
Release: 0
|
||||||
Source1: COPYING
|
Source1: COPYING
|
||||||
Source2: same-build-result.sh
|
Source2: same-build-result.sh
|
||||||
|
12
pkg-diff.sh
12
pkg-diff.sh
@ -249,19 +249,19 @@ strip_numbered_anchors()
|
|||||||
# <a href="#ftn.id32751" class="footnote" id="id32751">
|
# <a href="#ftn.id32751" class="footnote" id="id32751">
|
||||||
# <a href="#id32751" class="para">
|
# <a href="#id32751" class="para">
|
||||||
# <a href="#tex">1 TeX</a>
|
# <a href="#tex">1 TeX</a>
|
||||||
|
# <a id="id479058">
|
||||||
# <div id="ftn.id43927" class="footnote">
|
# <div id="ftn.id43927" class="footnote">
|
||||||
|
# <div class="section" id="id46">
|
||||||
|
|
||||||
for f in old/$file new/$file; do
|
for f in old/$file new/$file; do
|
||||||
sed -ie '
|
sed -ie '
|
||||||
1 {
|
1 {
|
||||||
: N
|
: N
|
||||||
$ {
|
$ {
|
||||||
s@\(<a[[:blank:]]\+id=\n\?"\)\(id[a-z][0-9]\+\)\("[^>]* name=\n\?"\)\(id[a-z][0-9]\+\)\("[^>]*>\)@\1id_idN\3name_idN\5@g
|
s@\(<a[^>]\+id=\n\?"\)\(id[a-z0-9]\+\)\("[^>]*>\)@\1a_idN\3@g
|
||||||
s@\(<a[[:blank:]]\+id="\)\(id[a-z][0-9]\+\)\("[^>]*>\)@\1idN\3@g
|
s@\(<a[^>]\+name=\n\?"\)\(id[a-z0-9]\+\)\("[^>]*>\)@\1a_nameN\3@g
|
||||||
s@\(<a[[:blank:]]\+name="\)\(id[a-z][0-9]\+\)\("[^>]*>\)@\1nameN\3@g
|
s@\(<a[^>]\+href="#\)\([^"]\+\)\("[^>]*>\)@\1href_anchor\3@g
|
||||||
s@\(<a[[:blank:]]\+href="#\)\([^"]\+\)\("[^>]\+id="\)\(id[a-z0-9]\+\)\("[^>]*>\)@\1href_anchor\3id_idN\5@g
|
s@\(<div[^>]\+id="\)\([a-z0-9]\+\)\("[^>]*>\)@\1div_idN\3@g
|
||||||
s@\(<a[[:blank:]]\+href="#\)\([^"]\+\)\("[^>]*>\)@\1href_anchor\3@g
|
|
||||||
s@\(<div[[:blank:]]\+id="\)\(ftn\.[a-z]\+[0-9]\+\)\("[^>]*>\)@\1ftn.N\3@g
|
|
||||||
}
|
}
|
||||||
N
|
N
|
||||||
b N
|
b N
|
||||||
|
Loading…
Reference in New Issue
Block a user