#!/bin/bash -e # Copyright (C) 2009 Andrius Štikonas # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . source "`dirname $0`/ths-variables" if [ ! -f ".ths" ]; then echo "Please enter your language code (Default: lt):" read -r lcode if [ ! "$lcode" ]; then lcode="lt" fi echo lcode="$lcode" >> ".ths" while [ ! "$svnwrite" = "n" ] && [ ! "$svnwrite" = "y" ]; do echo "Do you have write access to KDE svn repository? [y/N]" read -r svnwrite svnwrite=$(echo $svnwrite | tr YN yn) if [ ! "$svnwrite" ]; then svnwrite="n" fi done echo svnwrite="$svnwrite" >> ".ths" # Checkout repositories. mkdir trunk-kf6 stable-kf6 if [ "$svnwrite" = "y" ]; then cd trunk-kf6 svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf6/templates svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf6/$lcode cd ../stable-kf6 svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf6/templates svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf6/$lcode else svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf6/templates svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf6/$lcode svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf6/templates svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf6/$lcode fi else source ".ths" svn up trunk-kf6/templates svn up trunk-kf6/$lcode svn up stable-kf6/templates svn up stable-kf6/$lcode fi