From 8a2925df824c494773c95f50bd3c0fcf2c12868a Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 16 Feb 2021 20:03:35 -0500 Subject: Add missing %U for RFCs in bibsort --- bin/bibsort.pl | 6 ++++-- bin/man1/bibsort.1 | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/bibsort.pl b/bin/bibsort.pl index f87f066f..89133c87 100644 --- a/bin/bibsort.pl +++ b/bin/bibsort.pl @@ -32,11 +32,13 @@ sub byLast { foreach $ref (@refs) { @{$ref->{A}} = sort byLast @{$ref->{A}}; @{$ref->{Q}} = sort @{$ref->{Q}} if $ref->{Q}; - next unless $ref->{N}; - if ($ref->{N}[0] =~ /RFC/) { + if ($ref->{N} && $ref->{N}[0] =~ /RFC/) { $ref->{R} = $ref->{N}; delete $ref->{N}; } + if ($ref->{R} && $ref->{R}[0] =~ /RFC (\d+)/ && !$ref->{U}) { + $ref->{U} = ["https://tools.ietf.org/html/rfc${1}"]; + } } sub byAuthor { diff --git a/bin/man1/bibsort.1 b/bin/man1/bibsort.1 index 9d036920..07ed91ef 100644 --- a/bin/man1/bibsort.1 +++ b/bin/man1/bibsort.1 @@ -1,4 +1,4 @@ -.Dd December 15, 2020 +.Dd February 16, 2021 .Dt BIBSORT 1 .Os . @@ -31,7 +31,10 @@ Additionally, macros referencing RFC numbers are rewritten to .Ic \&%R -macros. +macros +and missing +.Ic \&%U +macros are added for RFCs. . .Sh EXAMPLES .Dl :%!bibsort -- cgit 1.4.1 bc61d35f5209dac589d9697b7fe46'>tree commit diff
path: root/security/libretls/Makefile (unfollow)
Commit message (Expand)Author
2021-01-17Update cgit-causal-agencyJune McEnroe
2021-01-17Update scooper to 1.1June McEnroe
2021-01-17Update catgirl to 1.5 (BONUS WEBISODE)June McEnroe
2021-01-15Update litterbox to 1.7June McEnroe
2021-01-15Update pounce to 2.2June McEnroe
2021-01-15Update catgirl to 1.4June McEnroe
2020-12-28Replace cgit-patched with cgit-causal-agencyJune McEnroe
2020-12-18Add notemap portJune McEnroe
2020-12-15Update libretls to 3.3.1June McEnroe
2020-12-15Update catsit to 1.1June McEnroe
2020-12-15Update pounce to 2.1p1June McEnroe
2020-12-15Add imbox portJune McEnroe
2020-11-24Update pounce to 2.1June McEnroe
2020-11-24Update libretls to 3.3.0June McEnroe
2020-11-17Update catgirl to 1.3June McEnroe
2020-11-17Update libretls to 3.2.2June McEnroe
2020-09-29Update libretls to 3.2.1June McEnroe
2020-09-10Update catgirl to 1.2June McEnroe
2020-09-09Add pounce-palaver portJune McEnroe
2020-09-09Update pounce to 2.0June McEnroe
2020-09-09Update litterbox to 1.6June McEnroe
2020-08-23Add scooper portJune McEnroe
2020-08-23Add catsit portJune McEnroe
2020-08-13Update pounce to 1.4p2June McEnroe
2020-08-11Update pounce to 1.4p1June McEnroe
2020-08-10Add litterbox portJune McEnroe
2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe