65 行
2.3 KiB
Bash
Executable File
65 行
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright (C) 2009 Andrius Štikonas <andrius@stikonas.eu>
|
|
#
|
|
# 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 <http://www.gnu.org/licenses/>.
|
|
|
|
source "`dirname $0`/ths-variables"
|
|
|
|
if [ ! -f ".ths" ]; then
|
|
echo "Please enter your language code (Default: lt):"
|
|
read 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 svnwrite
|
|
svnwrite=`echo $svnwrite | tr YN yn`
|
|
if [ ! $svnwrite ]; then
|
|
svnwrite="n"
|
|
fi
|
|
done
|
|
echo svnwrite="$svnwrite" >> ".ths"
|
|
|
|
# Checkout repositories.
|
|
mkdir trunk-kf5 stable-kf5
|
|
if [ "$svnwrite" = "y" ]; then
|
|
cd trunk-kf5
|
|
svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/templates
|
|
svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/scripts
|
|
svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/$lcode
|
|
cd ../stable-kf5
|
|
svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/templates
|
|
svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/scripts
|
|
svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/$lcode
|
|
else
|
|
svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/templates
|
|
svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/scripts
|
|
svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/$lcode
|
|
svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/templates
|
|
svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/scripts
|
|
svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/$lcode
|
|
fi
|
|
else
|
|
source ".ths"
|
|
svn up trunk-kf5/templates
|
|
svn up trunk-kf5/$lcode
|
|
svn up trunk-kf5/scripts
|
|
svn up stable-kf5/templates
|
|
svn up stable-kf5/$lcode
|
|
svn up stable-kf5/scripts
|
|
fi
|