8 # Parse arguments aimed at this wrapper, and drop them from $@ so we
9 # can pass it on to ikiwiki.
12 if [ "${arg}" = --non-fatal-sanity-check ]; then
16 set -- "${@}" "${arg}"
19 git_dir
="$(git rev-parse --show-toplevel)"
20 if ! "${git_dir}/bin/sanity-check-website" ; then
21 if [ "${FATAL_SANITY_CHECK}" != no
]; then
22 echo "Some pages in our wiki are bad! Please fix them or re-run" \
23 "with the --non-fatal-sanity-check option" >&2
28 # If I knew Ikiwiki better I'd probably figure out how to just make it
29 # keep the misc/*.html files as-is instead of this hack.
30 fixup_14962_workaround
() {
31 mkdir
-p config
/chroot_local-includes
/usr
/share
/doc
/tails
/website
/misc
32 rm -f config
/chroot_local-includes
/usr
/share
/doc
/tails
/website
/misc
/*
33 cp wiki
/src
/misc
/*.html \
34 config
/chroot_local-includes
/usr
/share
/doc
/tails
/website
/misc
37 ikiwiki
-setup ikiwiki.setup
-refresh "$@" && fixup_14962_workaround