From 4f6b401c2ae8829a827eabd1ba000ec04c679e83b1cea776414c1eabc8716a22 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 25 Aug 2016 16:29:08 +0000 Subject: [PATCH] Simpler pattern in strip_numbered_anchors OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=217 --- build-compare.spec | 2 +- pkg-diff.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build-compare.spec b/build-compare.spec index 39874fc..0bf5851 100644 --- a/build-compare.spec +++ b/build-compare.spec @@ -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: 20160825T162810.b6dc062 +Version: 20160825T182753.c18eb00 Release: 0 Source1: COPYING Source2: same-build-result.sh diff --git a/pkg-diff.sh b/pkg-diff.sh index 80904e6..96acc2e 100644 --- a/pkg-diff.sh +++ b/pkg-diff.sh @@ -249,19 +249,19 @@ strip_numbered_anchors() # # # 1 TeX + # #
+ #
for f in old/$file new/$file; do sed -ie ' 1 { : N $ { - s@\(]* name=\n\?"\)\(id[a-z][0-9]\+\)\("[^>]*>\)@\1id_idN\3name_idN\5@g - s@\(]*>\)@\1idN\3@g - s@\(]*>\)@\1nameN\3@g - s@\(]\+id="\)\(id[a-z0-9]\+\)\("[^>]*>\)@\1href_anchor\3id_idN\5@g - s@\(]*>\)@\1href_anchor\3@g - s@\(]*>\)@\1ftn.N\3@g + s@\(]\+id=\n\?"\)\(id[a-z0-9]\+\)\("[^>]*>\)@\1a_idN\3@g + s@\(]\+name=\n\?"\)\(id[a-z0-9]\+\)\("[^>]*>\)@\1a_nameN\3@g + s@\(]\+href="#\)\([^"]\+\)\("[^>]*>\)@\1href_anchor\3@g + s@\(]\+id="\)\([a-z0-9]\+\)\("[^>]*>\)@\1div_idN\3@g } N b N