man: fix topic/title(s)

Resolves: rhbz#1294252
Version: 3.2.0-3
This commit is contained in:
Pavel Raiskup 2016-05-16 07:41:16 +02:00
parent 7827061904
commit 20b4c54be1

View File

@ -1,6 +1,6 @@
Name: libarchive Name: libarchive
Version: 3.2.0 Version: 3.2.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: A library for handling streaming archive formats Summary: A library for handling streaming archive formats
License: BSD License: BSD
@ -89,8 +89,12 @@ replace ()
binary=${file%%.*} binary=${file%%.*}
pattern=${binary##bsd} pattern=${binary##bsd}
awk " awk "
# replace the topic
/^.Dt ${pattern^^} 1/ {
print \".Dt ${binary^^} 1\";
next;
}
# replace the first occurence of \"$pattern\" by \"$binary\" # replace the first occurence of \"$pattern\" by \"$binary\"
!stop && /^.Nm $pattern/ { !stop && /^.Nm $pattern/ {
print \".Nm $binary\" ; print \".Nm $binary\" ;
@ -182,6 +186,9 @@ run_testsuite
%changelog %changelog
* Mon May 16 2016 Pavel Raiskup <praiskup@redhat.com> - 3.2.0-3
- fix the manual pages for remaining issue (rhbz#1294252)
* Thu May 12 2016 Pavel Raiskup <praiskup@redhat.com> - 3.2.0-2 * Thu May 12 2016 Pavel Raiskup <praiskup@redhat.com> - 3.2.0-2
- fix manual pages to mention correctly spelled binary names (rhbz#1294252) - fix manual pages to mention correctly spelled binary names (rhbz#1294252)