#!/bin/bash # Checks for changes in the translation directory, updates them and checks # them in to the OLAT cvs # 19.11.2004 # gnaegi@id.unizh.ch export CVSROOT=:ext:olat@cvs.olat.org:/usr/local/cvs/ export CVS_RSH=ssh DEDIFFSNOTIFICATION="alexandra.stucki@id.unizh.ch" cd /usr/local/olat/olat3 cvs diff -r HEAD webapp/i18n/default/de/ >dediff.diff 2>/dev/null DIFF=`cat dediff.diff` # abort when any conflicts are found and send email to developers if [ "$DIFF" != "" ]; then cat dediff.diff | mail -s "Changes found in DE locale - notify translators if needed" -r olat@olat.unizh.ch $DEDIFFSNOTIFICATION fi rm dediff.diff