ths-scripts/checkout

65 lines
2.3 KiB
Plaintext
Raw Normal View History

2009-03-16 20:12:24 +00:00
#!/bin/bash
2014-03-23 17:56:13 +00:00
# Copyright (C) 2009 Andrius Štikonas <andrius@stikonas.eu>
2009-03-16 20:12:24 +00:00
#
# 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"
2009-03-16 20:12:24 +00:00
2014-11-21 21:12:46 +00:00
if [ ! -f ".ths" ]; then
echo "Please enter your language code (Default: lt):"
read lcode
if [ ! "$lcode" ]; then
lcode="lt"
2009-03-16 20:12:24 +00:00
fi
2014-11-21 21:12:46 +00:00
echo lcode="$lcode" >> ".ths"
2009-03-16 20:12:24 +00:00
while [ ! "$svnwrite" = "n" ] && [ ! "$svnwrite" = "y" ]; do
2014-11-21 21:12:46 +00:00
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
2009-03-16 20:12:24 +00:00
done
2014-11-21 21:12:46 +00:00
echo svnwrite="$svnwrite" >> ".ths"
2009-03-16 20:12:24 +00:00
# Checkout repositories.
2014-11-21 21:12:46 +00:00
mkdir trunk-kf5 stable-kf5
2009-03-16 20:12:24 +00:00
if [ "$svnwrite" = "y" ]; then
2014-11-21 21:12:46 +00:00
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
2009-03-16 20:12:24 +00:00
else
2014-11-21 21:12:46 +00:00
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
2009-03-16 20:12:24 +00:00
fi
else
2014-11-21 21:12:46 +00:00
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
2009-03-16 20:12:24 +00:00
fi