- Trim first line of man page to catch overly verbose tools (now Pandoc)
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build-compare?expand=0&rev=272
This commit is contained in:
parent
43ad56bd29
commit
c91e308f66
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 14 07:07:07 UTC 2020 - olaf@aepfle.de
|
||||||
|
|
||||||
|
- Trim first line of man page to catch overly verbose tools (now Pandoc)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 13 13:13:13 UTC 2020 - olaf@aepfle.de
|
Wed May 13 13:13:13 UTC 2020 - olaf@aepfle.de
|
||||||
|
|
||||||
|
@ -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: 20200513T191311.ef45e71
|
Version: 20200514T095116.be3487c
|
||||||
Release: 0
|
Release: 0
|
||||||
Source1: COPYING
|
Source1: COPYING
|
||||||
Source2: same-build-result.sh
|
Source2: same-build-result.sh
|
||||||
|
@ -207,11 +207,12 @@ trim_man_first_line()
|
|||||||
{
|
{
|
||||||
# Handles the first line if it is like:
|
# Handles the first line if it is like:
|
||||||
#.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28)
|
#.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28)
|
||||||
|
#.\" Automatically generated by Pandoc 2.9.2.1
|
||||||
#.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3.
|
#.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3.
|
||||||
local f=$1
|
local f=$1
|
||||||
[[ $nofilter ]] && return
|
[[ $nofilter ]] && return
|
||||||
sed -i -e '1{
|
sed -i -e '1{
|
||||||
s|^\.\\"[[:blank:]]\+Automatically[[:blank:]]generated[[:blank:]]by[[:blank:]]Pod::Man[[:blank:]].*|.\\" Overly verbose Pod::Man|
|
s|^\.\\"[[:blank:]]\+Automatically[[:blank:]]generated[[:blank:]]by[[:blank:]].*|.\\" Automatically generated by SomeTool|
|
||||||
s|^\.\\"[[:blank:]]\+DO[[:blank:]]NOT[[:blank:]]MODIFY[[:blank:]]THIS[[:blank:]]FILE![[:blank:]]\+It[[:blank:]]was[[:blank:]]generated[[:blank:]]by[[:blank:]]help2man[[:blank:]].*|.\\" Overly verbose help2man|
|
s|^\.\\"[[:blank:]]\+DO[[:blank:]]NOT[[:blank:]]MODIFY[[:blank:]]THIS[[:blank:]]FILE![[:blank:]]\+It[[:blank:]]was[[:blank:]]generated[[:blank:]]by[[:blank:]]help2man[[:blank:]].*|.\\" Overly verbose help2man|
|
||||||
}' $f
|
}' $f
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user