--- /dev/null
+#!/bin/sh -e
+
+cmd="$(dirname "$(realpath -- "$0")")"
+dir=`dirname $1`
+dir=${dir##*/}
+[ "$dir" = chans ] || direct="-direct"
+$cmd/sb -whole $direct `cat $1/id` > $1/out.rec.tmp
+mv $1/out.rec.tmp $1/out.rec
+recsel --collapse --print-values=Id < $1/out.rec | tail -1 > $1/last
R echo ... > file/get
R tar xf < file/out
-cmd/scrollback > history.rec
+cmd/sb ... > history.rec
@end verbatim
@url{https://tools.suckless.org/ii/usage/, ii} IRC client's page has
compile Go programs in @file{cmd} subdirectory.
@example
-for c (cmd/rd cmd/mmc cmd/scrollback cmd/ch-leave) @{
+for c (cmd/rd cmd/mmc cmd/sb cmd/ch-leave) @{
pushd $c ; go build -ldflags=-s ; popd
@}
@end example
@item You can preliminary fill your history:
@example
-for c (users/*(/) chans/*(/)) @{
- cmd/scrollback -whole `cat $c/id` > $c/out.rec
- cmd/last-update < $c/out.rec > $c/last
-@}
+for c (users/*(/) chans/*(/)) cmd/sb/all $c
@end example
@end enumerate