#' gen/specification.html gen/howtos.html
perl -MFile::Slurp -pi -e 'BEGIN { $footer = read_file("'$FOOTER'") } s##
#!/bin/bash -eu if [[ $# != 1 || ! -d $1 ]]; then echo >&2 "Usage: $0 include_dir" exit 1 fi HEADER="$1/head.html" NAV_BAR="$1/nav.html" FOOTER="$1/footer.html" for f in "$1"/{head,nav,footer}.html; do if [[ ! -e "${f}" ]]; then echo >&2 "Need ${f} to exist" exit 1 fi done perl -MFile::Slurp -pi -e 'BEGIN { $header = read_file("'$HEADER'") } s#
#$header #' gen/specification.html gen/howtos.html perl -MFile::Slurp -pi -e 'BEGIN { $nav = read_file("'$NAV_BAR'") } s##