From a936154cd7215303c30961e28a784004514bf046 Mon Sep 17 00:00:00 2001 From: Remco Rijnders Date: Thu, 16 Aug 2012 10:26:33 +0000 Subject: Check if a new version of the script is available, and if so show the changes. --- check_for_translation_work.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh index 834ff24e..d33e3bb1 100755 --- a/check_for_translation_work.sh +++ b/check_for_translation_work.sh @@ -7,6 +7,7 @@ # # Filip Komar, 2012 # Remco Rijnders, 2012 +# $Id$ # # Please see SVN for a list of changes to this script. # @@ -101,6 +102,16 @@ EOF exit fi +# Check if a newer version of this script is available. If yes, show the changes. +my_version=`echo "$Revision$" | cut -d" " -f2` +svn_version=`svn info svn://svn.mageia.org/svn/soft/i18n-tools/check_for_translation_work.sh | grep Revision: | cut -c11-` + +if [ $my_version -lt $svn_version ]; then + echo "You are running revision $my_version of this script, while $svn_version is available on SVN." + echo "You may consider updating. Changes are:" + svn log -r $my_version:$svn_version svn://svn.mageia.org/svn/soft/i18n-tools/check_for_translation_work.sh +fi + # if you do have svn commit access, change the protocol from svn:// to svn+ssh://USERNAME@ in the projects array for easier committing... declare -A projects declare -A web_pages -- cgit v1.2.1