From 12dacfd2b500f6a3a2ea11420a71c94ff290d9d5f61ff0d676f34a79ffadb201 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 11 Aug 2021 20:45:14 +0000 Subject: [PATCH] - Handle another Date: variant in DocBook generated man pages OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=282 --- build-compare.changes | 5 +++++ build-compare.spec | 2 +- pkg-diff.sh | 12 ++++++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/build-compare.changes b/build-compare.changes index aeae8a7..9e67ad2 100644 --- a/build-compare.changes +++ b/build-compare.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 11 20:30:40 UTC 2021 - olaf@aepfle.de + +- Handle another Date: variant in DocBook generated man pages + ------------------------------------------------------------------- Mon Jul 27 06:06:06 UTC 2020 - bwiedemann@suse.de diff --git a/build-compare.spec b/build-compare.spec index 18487e9..1e4d42f 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: 20200727T175347.d95eb35 +Version: 20210811T224256.f313711 Release: 0 Source1: COPYING Source2: same-build-result.sh diff --git a/pkg-diff.sh b/pkg-diff.sh index b7f125a..3ec0606 100644 --- a/pkg-diff.sh +++ b/pkg-diff.sh @@ -554,7 +554,12 @@ normalize_file() trim_man_first_line $f # generated by docbook xml: #.\" Date: 09/13/2010 - sed -i -e 's|Date: [0-1][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]|Date: 09/13/2010|' $f + # Generator: DocBook XSL Stylesheets v1.78.1 + #.\" Date: 2021-08-05 + sed -i -e ' + s|Date: [0-1][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]|Date: DD/MM/YYYY| + s|Date: [0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]|Date: YYYY-MM-DD| + ' $f done ;; *.elc) @@ -1107,7 +1112,10 @@ check_single_file() return 0 } -FUNCTIONS=${0%/*}/functions.sh +case "${0}" in + */*) FUNCTIONS=${0%/*}/functions.sh ;; + *) FUNCTIONS=functions.sh ;; +esac : ${buildcompare_head:="head -n 200"} nofilter=${buildcompare_nofilter} sort=sort