#!/bin/sh REPOS="$1" TXN="$2" SVNLOOK="/usr/bin/svnlook" SVNLOOK_SWITCH="-r" "$SVNLOOK" changed "$SVNLOOK_SWITCH" "$TXN" "$REPOS" | while read line; do if echo -n "$line" | egrep -q '^[AU].*[^/]$'; then filepath="`echo -n "$line" | cut -c 5-`" fi #check if the path has one of our predefined suffixes FOO=$(echo $filepath | egrep "\.c|\.cpp|\.h|\.txt|\.sql|\.xml|SConscript|SConstruct|\.sh$") && if [ -z $NOTFOO ]; then eolstyle="`$SVNLOOK propget "$SVNLOOK_SWITCH" "$TXN" "$REPOS" svn:eol-style "$filepath" 2>/dev/null`" if [ "$eolstyle" != LF ]; then echo "File '$filepath' doesn't have" 1>&2 echo "an svn:eol-style property of 'LF'." 1>&2 exit 1 echo exit so breit wie hoch fi fi done echo "Commit successful" exit 0