branch='trunk'
if ! command -v git >/dev/null 2>&1; then
echo 'byggsteg: git is not on this deployment PATH, so the clone cannot be updated' >&2
exit 1
fi
if ! cd "$dir"; then
echo "byggsteg: cannot enter the clone $dir" >&2
exit 1
fi
root=$(git rev-parse --show-toplevel 2>/dev/null)
if [ "$root" != "$(pwd -P)" ]; then
echo "byggsteg: $dir is not a git checkout; remove it and the next run clones it again" >&2
exit 1
fi
if ! origin=$(git remote get-url origin 2>/dev/null); then
echo "byggsteg: $dir has no origin remote to fetch $branch from" >&2
exit 1
fi
before=$(git rev-parse --short HEAD 2>/dev/null) || before=none
attempt=1
while :; do
if GIT_TERMINAL_PROMPT=0 git fetch --quiet origin "+refs/heads/$branch:refs/remotes/origin/$branch"; then
break
fi
if [ "$attempt" -ge 3 ]; then
echo "byggsteg: could not fetch $branch from $origin after 3 attempts; is the branch still there, and is the remote reachable?" >&2
exit 1
fi
echo "byggsteg: fetching $branch from $origin failed; retrying in $((attempt * 2))s" >&2
sleep $((attempt * 2))
attempt=$((attempt + 1))
done
if ! git checkout --quiet --force -B "$branch" FETCH_HEAD; then
echo "byggsteg: fetched $branch from $origin but could not check it out" >&2
exit 1
fi
after=$(git rev-parse --short HEAD)
if [ "$before" = "$after" ]; then
echo "byggsteg: $branch was already at $after"
else
echo "byggsteg: $branch moved from $before to $after"
fi
byggsteg: trunk was already at 6a6f3ee
setup$ uname -a✓ succeeded1 lines · 0.0s
Linux wolk-jjba 7.2.11-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
commit 6a6f3ee185b2dc7285852fc28e1de6fd51f919b1
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Sat Nov 28 13:47:14 2026 +0100
docs(icons): say what the icon task does now
The docstring still promised that `maak install-icon-files' removes the
WhiteSur cursor set an older task left behind. The retirement of the legacy
look dropped that cleanup, so the sentence described code that is not there.
🤖 Generated with [ECA](https://eca.dev)
Co-Authored-By: eca-agent <git@eca.dev>
M maak.scm
deploy$ sudo maak deploy✓ succeeded84 lines · 2.8s
--------------------------------------------------------------
Maak 1.0.0: the infinitely extensible command runner
Loading tasks from: /etc/byggsteg/job-clone/heks-linux/trunk/maak.scm
Executing Maak tasks: deploy
--------------------------------------------------------------
=> Running Maak task: deploy
Publish the API reference to the web directory.
`maak docs' builds the reference and can put it nowhere a reader reaches; this
is the copy that makes
https://jointhefreeworld.org/api-docs/heks-linux/index.html - the link at the
top of the README, and the bar's right click - the page dokgen just wrote
rather than whatever was there when somebody last remembered to copy it.
CI runs it on every push to trunk, in the job that follows the gates, and that
job lands on the machine that serves the site: a Byggsteg job runs its tasks
where the daemon runs, which is where /srv/http is, so the copy is the
publication rather than a write into a container that is thrown away.
The directory is emptied first, so a module that was renamed does not leave a
page on the server beside the one that replaced it, and the build is removed
afterwards: what the tree keeps is the source.
removed 'doc/api/diagrams/heks-linux_surface-31117102.mmd'
removed directory 'doc/api/diagrams'
removed 'doc/api/index.texi'
removed 'doc/api/dokgen.css'
removed 'doc/api/dokgen.js'
removed 'doc/api/dokgen-mermaid.js'
removed directory 'doc/api'
removed 'doc/api-dist/index.html'
removed 'doc/api-dist/dokgen.css'
removed 'doc/api-dist/dokgen.js'
removed 'doc/api-dist/diagrams/heks-linux_surface-31117102.mmd'
removed directory 'doc/api-dist/diagrams'
removed directory 'doc/api-dist'
removed directory 'doc'
Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- dokgen api --destination doc/api ./src/heks-linux
Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- dokgen api --destination doc/api ./src/heks-linux
channels.scm:45:6: warning: channel 'jointhefreeworld' is not trusted
[INFO] [2026-11-28 13:50:58 CET] load-local-overrides: Attempting override resolution for module (heks-linux user-settings) with profile 'local-settings'
[INFO] [2026-11-28 13:50:58 CET] load-local-overrides: $XDG_CONFIG_HOME empty/unset, falling back to $HOME/.config
[INFO] [2026-11-28 13:50:58 CET] load-local-overrides: Checking for override file at: /root/.config/heks-linux/local-settings.scm
[INFO] [2026-11-28 13:50:58 CET] load-local-overrides: No override file found at /root/.config/heks-linux/local-settings.scm. Skipping.
API documentation saved to doc/api
mkdir: created directory 'doc/api-dist'
Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- texi2any -v --html --no-split --css-ref=https://jointhefreeworld.org/static/css/jointhefreeworld.css -I doc/api -c 'EXTRA_HEAD=<link rel="stylesheet" href="dokgen.css"><script src="dokgen.js" defer></script>' -o doc/api-dist/index.html ./doc/api/index.texi
Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- texi2any -v --html --no-split --css-ref=https://jointhefreeworld.org/static/css/jointhefreeworld.css -I doc/api -c 'EXTRA_HEAD=<link rel="stylesheet" href="dokgen.css"><script src="dokgen.js" defer></script>' -o doc/api-dist/index.html ./doc/api/index.texi
channels.scm:45:6: warning: channel 'jointhefreeworld' is not trusted
index.texi: warning: must specify a title with a title command or @top
Execute command:
cp -r -f -v doc/api/dokgen.css doc/api-dist
'doc/api/dokgen.css' -> 'doc/api-dist/dokgen.css'
Execute command:
cp -r -f -v doc/api/dokgen.js doc/api-dist
'doc/api/dokgen.js' -> 'doc/api-dist/dokgen.js'
Execute command:
cp -r -f -v doc/api/diagrams doc/api-dist
'doc/api/diagrams' -> 'doc/api-dist/diagrams'
'doc/api/diagrams/heks-linux_surface-31117102.mmd' -> 'doc/api-dist/diagrams/heks-linux_surface-31117102.mmd'
publishing doc/api-dist to /srv/http/jointhefreeworld.org/api-docs/heks-linuxremoved '/srv/http/jointhefreeworld.org/api-docs/heks-linux/index.html'
removed '/srv/http/jointhefreeworld.org/api-docs/heks-linux/dokgen.css'
removed '/srv/http/jointhefreeworld.org/api-docs/heks-linux/dokgen.js'
removed '/srv/http/jointhefreeworld.org/api-docs/heks-linux/diagrams/heks-linux_surface-31117102.mmd'
removed directory '/srv/http/jointhefreeworld.org/api-docs/heks-linux/diagrams'
removed directory '/srv/http/jointhefreeworld.org/api-docs/heks-linux'
'doc/api-dist' -> '/srv/http/jointhefreeworld.org/api-docs/heks-linux'
'doc/api-dist/index.html' -> '/srv/http/jointhefreeworld.org/api-docs/heks-linux/index.html'
'doc/api-dist/dokgen.css' -> '/srv/http/jointhefreeworld.org/api-docs/heks-linux/dokgen.css'
'doc/api-dist/dokgen.js' -> '/srv/http/jointhefreeworld.org/api-docs/heks-linux/dokgen.js'
'doc/api-dist/diagrams' -> '/srv/http/jointhefreeworld.org/api-docs/heks-linux/diagrams'
'doc/api-dist/diagrams/heks-linux_surface-31117102.mmd' -> '/srv/http/jointhefreeworld.org/api-docs/heks-linux/diagrams/heks-linux_surface-31117102.mmd'
removed 'doc/api/diagrams/heks-linux_surface-31117102.mmd'
removed directory 'doc/api/diagrams'
removed 'doc/api/index.texi'
removed 'doc/api/dokgen.css'
removed 'doc/api/dokgen.js'
removed 'doc/api/dokgen-mermaid.js'
removed directory 'doc/api'
removed 'doc/api-dist/index.html'
removed 'doc/api-dist/dokgen.css'
removed 'doc/api-dist/dokgen.js'
removed 'doc/api-dist/diagrams/heks-linux_surface-31117102.mmd'
removed directory 'doc/api-dist/diagrams'
removed directory 'doc/api-dist'
removed directory 'doc'