Skip to content
Snippets Groups Projects
build-website 664 B
Newer Older
  • Learn to ignore specific revisions
  • # Parse arguments aimed at this wrapper, and drop them from $@ so we
    
    # can pass it on to ikiwiki.
    for arg in "${@}"; do
        shift
        if [ "${arg}" = --non-fatal-sanity-check ]; then
            FATAL_SANITY_CHECK=no
            continue
        fi
    
        set -- "${@}" "${arg}"
    
    done
    
    git_dir="$(git rev-parse --show-toplevel)"
    if ! "${git_dir}/bin/sanity-check-website" ; then
        if [ "${FATAL_SANITY_CHECK}" != no ]; then
            echo "Some pages in our wiki are bad! Please fix them or re-run" \
    
                 "with the --non-fatal-sanity-check option" >&2
    
    ikiwiki -setup ikiwiki.setup -refresh "$@"