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>2021-05-24 00:03:12 +0200
committerErich Eckner <git@eckner.net>2021-05-24 00:03:12 +0200
commit74d27e041744099eaff920a4f053d49a9e490a00 (patch)
tree528e818a3cc7d505699a2a2298b930b1e108e083
parent12826d5a59e415c15db428625057a69975e55747 (diff)
convert.sh: style changes
-rwxr-xr-xconvert.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/convert.sh b/convert.sh
index a5373af..de68df4 100755
--- a/convert.sh
+++ b/convert.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-dirs='/srv/arch-mirror/arch/arch/archlinux32/irc-logs/'
+dirs='/home/titus/irc-logs/'
declare -A colors
@@ -55,36 +55,36 @@ elif [ "$2" = 'html' ]; then
sed -n '
/^<span style="font-size: smaller">/{
s@^<span style="font-size: smaller">(\([^)]\+\))</span><b> @\1 @
- /entered the room\.<\/b><br\/>$/{
- s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b><br\/>$@\1 --> | \2 has joined '"${channel}"' @
+ /entered the room\.<\/b><br>$/{
+ s@^\(\S\+\) \(.*\S\) \[.*] entered the room\.<\/b><br>$@\1 --> | \2 has joined '"${channel}"' @
p
d
}
/ left the room /{
- s@^\(\S\+\) \(.*\S\) left the room (quit: \(.*\))\.</b><br/>$@\1 <-- | \2 has quit (\3)@
+ s@^\(\S\+\) \(.*\S\) left the room (\(quit: \)\?\(.*\))\.</b><br>$@\1 <-- | \2 has quit (\4)@
p
d
}
/ left the room\./{
- s@^\(\S\+\) \(.*\S\) left the room\.</b><br/>$@\1 <-- | \2 has quit (Quit: \2)@
+ s@^\(\S\+\) \(.*\S\) left the room\.</b><br>$@\1 <-- | \2 has quit (Quit: \2)@
p
d
}
/ is now known as /{
- s@^\(\S\+\) \(.*\S\)\s*</b><br/>$@\1 -- | \2@
+ s@^\(\S\+\) \(.*\S\)\s*</b><br>$@\1 -- | \2@
p
d
}
d
}
\@</span> <b>\*\*\*\S\+</b></span> @{
- s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\*\*\*\(\S*\)</b></span> \(.*\)<br/>$@\1 * | \2 \3@
+ s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\*\*\*\(\S*\)</b></span> \(.*\)<br>$@\1 * | \2 \3@
p
d
}
/<span style="font-size: smaller">/{
s@^<span style="color: #[0-9A-F]\{6\}"><span style="font-size: smaller">(\([^)]\+\))</span> <b>\(\S\+\):</b></span> @\1 \2 | @
- s@<br/>$@@
+ s@<br>$@@
p
d
}