diff options
author | Remco Rijnders <remmy@mageia.org> | 2012-08-16 10:26:33 +0000 |
---|---|---|
committer | Remco Rijnders <remmy@mageia.org> | 2012-08-16 10:26:33 +0000 |
commit | a936154cd7215303c30961e28a784004514bf046 (patch) | |
tree | 5ec16851b3fe8700a37cbf203735828b09d4a41e | |
parent | d2060108a6c0f6704f3f0c12d6dbb3ae9092898d (diff) | |
download | tools-a936154cd7215303c30961e28a784004514bf046.tar tools-a936154cd7215303c30961e28a784004514bf046.tar.gz tools-a936154cd7215303c30961e28a784004514bf046.tar.bz2 tools-a936154cd7215303c30961e28a784004514bf046.tar.xz tools-a936154cd7215303c30961e28a784004514bf046.zip |
Check if a new version of the script is available, and if so show the changes.
-rwxr-xr-x | check_for_translation_work.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |