Translation helper scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

checkout 2.3KB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/bin/bash
  2. # Copyright (C) 2009 Andrius Štikonas <andrius@stikonas.eu>
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. source "`dirname $0`/ths-variables"
  17. if [ ! -f ".ths" ]; then
  18. echo "Please enter your language code (Default: lt):"
  19. read lcode
  20. if [ ! "$lcode" ]; then
  21. lcode="lt"
  22. fi
  23. echo lcode="$lcode" >> ".ths"
  24. while [ ! "$svnwrite" = "n" ] && [ ! "$svnwrite" = "y" ]; do
  25. echo "Do you have write access to KDE svn repository? [y/N]"
  26. read svnwrite
  27. svnwrite=`echo $svnwrite | tr YN yn`
  28. if [ ! $svnwrite ]; then
  29. svnwrite="n"
  30. fi
  31. done
  32. echo svnwrite="$svnwrite" >> ".ths"
  33. # Checkout repositories.
  34. mkdir trunk-kf5 stable-kf5
  35. if [ "$svnwrite" = "y" ]; then
  36. cd trunk-kf5
  37. svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/templates
  38. svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/scripts
  39. svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/$lcode
  40. cd ../stable-kf5
  41. svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/templates
  42. svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/scripts
  43. svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/$lcode
  44. else
  45. svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/templates
  46. svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/scripts
  47. svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/$lcode
  48. svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/templates
  49. svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/scripts
  50. svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/$lcode
  51. fi
  52. else
  53. source ".ths"
  54. svn up trunk-kf5/templates
  55. svn up trunk-kf5/$lcode
  56. svn up trunk-kf5/scripts
  57. svn up stable-kf5/templates
  58. svn up stable-kf5/$lcode
  59. svn up stable-kf5/scripts
  60. fi