Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-06 22:12:19 +0200
committerErich Eckner <git@eckner.net>2018-04-06 22:12:19 +0200
commit16aaa935049835d71ad7b4d2028970f91ddc1011 (patch)
treea2d4125a733aed8667865c4a653dac0716d9c862
parent59aee5158fca433d073ba908a63e2e89c6ee86ae (diff)
convert.sh: make links nice(r)
-rwxr-xr-xconvert.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/convert.sh b/convert.sh
index 0663566..f2f7191 100755
--- a/convert.sh
+++ b/convert.sh
@@ -77,6 +77,9 @@ sed '
P
D
' | \
+sed '
+ s@\(\s\)\(https\?://\S\+\)@\1<a href="\2" target="_blank">\2</a>@g
+' | \
while read -r a b dummy c; do
if [ "${dummy}" != '|' ]; then
>&2 printf 'wrong dummy "%s"\n' "${dummy}"