#!/bin/bash ARGS=$* if [ -z ${ARGS} ]; then ARGS="." fi #STATUS=$(svn st ${ARGS} 2>&1) #echo ${STATUS} | grep .swp 2>&1 > /dev/null #if [ $? != 1 ]; then # echo "VIM swap files found!" # find ${ARGS} -name ".*.swp" # exit 1 #fi for ebuild in $(svn st ${ARGS} 2>&1|grep '^[AM].*.ebuild'|sed -e 's/[AM]\s*//'); do ebuild $ebuild digest done