#!/bin/sh # $FreeBSD$ REPO=$1 TXN=$2 OIFS=${IFS} IFS=$'\n' svnlook log -t "${TXN}" "${REPO}" | grep -wq core && exit 0 for line in $(svnlook changed -t $TXN $REPO) ; do IFS=${OIFS} set -- $line type=$1 fpath=$2 case $type in [^AU]*) continue ;; esac case $fpath in *.[1-9]) if ! svnlook cat -t ${TXN} ${REPO} $fpath | mandoc -Tlint -Werror >/dev/null 2>&1 ; then echo "Some manpages in your commit have syntax errors: $fpath" 1>&2 echo "Please fix this and try committing again." 1>&2 exit 1 fi ;; esac done