#!/bin/sh TD=$(mktemp -d) cp -a /usr/share/doc/mdbook/guide $TD/ sed -i'' s/.*guide-helper.*// $TD/guide/book.toml (cd $TD/guide && mdbook build)