#!/bin/sh # $FreeBSD$ REPO=$1 TXN=$2 OIFS=${IFS} IFS=$'\n' for line in $(svnlook changed -t $TXN $REPO) ; do IFS=${OIFS} set -- $line type=$1 fpath=$2 case $type in [^A]*) continue;; esac case $fpath in /head/*/*/Makefile*) if svnlook cat -t ${TXN} ${REPO} $fpath | grep -q "^NO_STAGE" ; then echo "Do not commit new ports with NO_STAGE" exit 1 fi ;; esac done