From 229754cc7b9bb9163d3357611d3a81850f00249a9c98faeb06ccbba02c6ded2b Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Wed, 11 Feb 2009 23:40:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/translation-update-upstream?expand=0&rev=1 --- .gitattributes | 23 ++ .gitignore | 1 + create-tlst-step1-list-all-po-projects.sh | 36 ++ create-tlst-step2-create-gnome_svn.sh | 106 ++++++ create-tlst.conf | 11 + ready | 0 ...slation-update-upstream-20090206.1.tar.bz2 | 3 + translation-update-upstream-AUTHORS | 1 + translation-update-upstream-COPYING | 340 ++++++++++++++++++ translation-update-upstream-HOWTO | 78 ++++ translation-update-upstream-README | 5 + translation-update-upstream.changes | 12 + translation-update-upstream.sh | 84 +++++ translation-update-upstream.spec | 97 +++++ upstream-collect-template.hook | 20 ++ upstream-collect.conf | 8 + upstream-collect.sh | 293 +++++++++++++++ upstream-gnome-generic.tlst | 8 + upstream-gnome_svn.hook | 22 ++ upstream-gnome_svn.tlst | 232 ++++++++++++ 20 files changed, 1380 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 create-tlst-step1-list-all-po-projects.sh create mode 100644 create-tlst-step2-create-gnome_svn.sh create mode 100644 create-tlst.conf create mode 100644 ready create mode 100644 translation-update-upstream-20090206.1.tar.bz2 create mode 100644 translation-update-upstream-AUTHORS create mode 100644 translation-update-upstream-COPYING create mode 100644 translation-update-upstream-HOWTO create mode 100644 translation-update-upstream-README create mode 100644 translation-update-upstream.changes create mode 100644 translation-update-upstream.sh create mode 100644 translation-update-upstream.spec create mode 100644 upstream-collect-template.hook create mode 100644 upstream-collect.conf create mode 100644 upstream-collect.sh create mode 100644 upstream-gnome-generic.tlst create mode 100644 upstream-gnome_svn.hook create mode 100644 upstream-gnome_svn.tlst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/create-tlst-step1-list-all-po-projects.sh b/create-tlst-step1-list-all-po-projects.sh new file mode 100644 index 0000000..5a6c277 --- /dev/null +++ b/create-tlst-step1-list-all-po-projects.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# This program searches for all active translations in the distro and +# does dumb guesses of project - domain relations. +# +# It needs access to distro RPMs. +# +set -o errexit + +source ${0%create-tlst-step1-list-all-po-projects.sh}create-tlst.conf + +cd $BINARY_REPO/suse/$BINARY_ARCH +for i in *.rpm ; do echo $i: ; rpm -qlp $i | grep LC_MESSAGES || : ; done >$OLDPWD/create-tlst-temp-all-po-files.lst +cd $OLDPWD +cd $BINARY_REPO/suse/noarch +for i in *.rpm ; do echo $i: ; rpm -qlp $i | grep LC_MESSAGES || : ; done >>$OLDPWD/create-tlst-temp-all-po-files.lst +cd $OLDPWD + +cat create-tlst-temp-all-po-files.lst | +sed ' +/:$/ { + h + d +} +/LC_MESSAGES$/d +s:.*/LC_MESSAGES/:: +/.*/ { + G + s/\(.*\)\.mo\n\(.*\)\.rpm:/\2 \1/ +} +/kde3-i18n/d +' | +uniq | +LC_COLLATE=C LC_ALL= sort -u >create-tlst-temp-all-po-projects.lst + +rm create-tlst-temp-all-po-files.lst diff --git a/create-tlst-step2-create-gnome_svn.sh b/create-tlst-step2-create-gnome_svn.sh new file mode 100644 index 0000000..e591f40 --- /dev/null +++ b/create-tlst-step2-create-gnome_svn.sh @@ -0,0 +1,106 @@ +#!/bin/bash + +# This program creates makes dumb guesses about relation of upstream +# projects and openSUSE packages and creates initial configuration file. +# +# It needs osc and net access. +# +# It tries to assign packages to GNOME SVN projects and adds other known packages. +# + +set -o errexit + +source ${0%create-tlst-step2-create-gnome_svn.sh}upstream-collect.conf + +osc ${OSC_APIURL:+--apisrv=$OSC_APIURL} list $OSC_REPOSITORY >create-tlst-temp-osc-projects.lst + +# branches tried for all apps: +KNOWN_BRANCHES="gnome-2-24" +# branches tried apps with the same name base: +APP_BRANCHES="beagle-0.2.16 dia_0_96 dia-0-96 FSPOT_0_5_0_STABLE gimp-2-6" +# FIXME: support for libgda:release-3-0-branch gnome-background:gnome-2-22 + +echo "# This file was generated $(LANG=C LC_ALL=C date) by create-tlst-step2-create-gnome_svn.sh." >upstream-gnome_svn.tlst +echo "# package domain method repository dir branch" >>upstream-gnome_svn.tlst + +SPACES=' ' + +# listing of all GNOME svn projects +# FIXME: "svn list http://svn.gnome.org/svn/" returns "301 Moved Permanently". +curl http://svn.gnome.org/svn/ | sed -n 's/.*/dev/null 2>&1 list http://svn.gnome.org/svn/$PROJECT/branches/$BRANCH ; then + echo "$PACKAGE${SPACES:0:28-${#PACKAGE}}$DOMAIN${SPACES:0:27-${#DOMAIN}}svn http://svn.gnome.org/svn $PROJECT/$PO_DIR${SPACES:0:26-${#PROJECT}-${#PO_DIR}}$BRANCH" + fi + done + for BRANCH in $APP_BRANCHES ; do + LCBRANCH=$(echo $BRANCH | tr A-Z a-z) + if test ${LCBRANCH#$PROJECT} = $LCBRANCH ; then + continue + fi + if svn >/dev/null 2>&1 list http://svn.gnome.org/svn/$PROJECT/branches/$BRANCH ; then + echo "$PACKAGE${SPACES:0:28-${#PACKAGE}}$DOMAIN${SPACES:0:27-${#DOMAIN}}svn http://svn.gnome.org/svn $PROJECT/$PO_DIR${SPACES:0:26-${#PROJECT}-${#PO_DIR}}$BRANCH" + fi + done + +# Disabled for now. Final merge will happen in spec file. +# # We want to include LCN only for projects, which need merge with GNOME SVN. +# if test -d translation-update-lcn/$DOMAIN ; then +# echo "$PACKAGE${SPACES:0:28-${#PACKAGE}}$DOMAIN${SPACES:0:27-${#DOMAIN}}zzzz_lcn" +# fi + + done | +tee upstream-gnome_svn_raw.lst | +LC_COLLATE=C LC_ALL= sort | +sed ' +s/ *zzzz_HEAD// +s/zzzz_lcn/lcn/ +' >>upstream-gnome_svn.tlst + +# Remove temporary progress file: +rm upstream-gnome_svn_raw.lst +rm create-tlst-temp-* diff --git a/create-tlst.conf b/create-tlst.conf new file mode 100644 index 0000000..aacb402 --- /dev/null +++ b/create-tlst.conf @@ -0,0 +1,11 @@ +# create-tlst.conf: Configuration for creating of translation-update-upstream.lst. +# +# Binary repository file system path you want to scan. It may be a local +# copy of a complete openSUSE repository or a remote repository mounted +# to a local file system. Note that DVD contents may be insufficient. + +BINARY_REPO=/work/CDs/all/full-i386 + +# Binary arch for. Directories suse/$BINARY_ARCH and suse/noarch will be +# searched. +BINARY_ARCH=i586 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/translation-update-upstream-20090206.1.tar.bz2 b/translation-update-upstream-20090206.1.tar.bz2 new file mode 100644 index 0000000..22d4eb3 --- /dev/null +++ b/translation-update-upstream-20090206.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:062b1434fea061f5ffa76d84e3f7688d8829bfb552272f9e6bf807347a76e6df +size 3624482 diff --git a/translation-update-upstream-AUTHORS b/translation-update-upstream-AUTHORS new file mode 100644 index 0000000..e8fcf84 --- /dev/null +++ b/translation-update-upstream-AUTHORS @@ -0,0 +1 @@ +Stanislav Brabec diff --git a/translation-update-upstream-COPYING b/translation-update-upstream-COPYING new file mode 100644 index 0000000..927f7f2 --- /dev/null +++ b/translation-update-upstream-COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + 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, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/translation-update-upstream-HOWTO b/translation-update-upstream-HOWTO new file mode 100644 index 0000000..f7c8d9e --- /dev/null +++ b/translation-update-upstream-HOWTO @@ -0,0 +1,78 @@ +If you want to add translation-update-upstream support to a package +=================================================================== + +1) Add to preamble: + + BuildRequires: translation-update-upstream + +2) Immediately after %setup (and before possible +gnome-patch-translation-prepare) add command: + + translation-update-upstream + +3) Add configuration for this package to translation-update-upstream and +update translations. + + +If you want to update or add single translation +=============================================== + +Add a line to a proper configuration file (or create a new one - +anything with nale *.tlst is sourced automatically). + +If your project uses a non-standard directory or SVN hierrarchy, you may +need a code into a *.hook file. + +Then run following command in unpacked sources directory: + +./upstream-collect.sh {package_name} + +where {package_name} is the name of the package you need to update. + +Then you have to edit spec file to include new tarball, rebuild it and +rebuild the package using the new version of translation-update-upstream. + +Note that the shapshot date of the package will not be updated, but +instead of it, a sub-version will be used. + +You need osc, network connection, cvs, svn, all commands needed to run +%prep of packages (e. g. patch or gnome-patch-translation) and network +connection. + + +If you want to update translations (short process: update translations only) +============================================================================ + +Run following command in unpacked sources directory: + +./upstream-collect.sh + +It creates a tarball with translations updated by upstream using all +existing *.tlst filůes (configuration of packages) and +upstream-collect.conf (configuration of tool itself). + +Then you have to edit spec file to include new tarball, rebuild it and +rebuild all packages using new version of translation-update-upstream. + +You need osc, network connection, cvs, svn, all commands needed to run +%prep of packages (e. g. patch or gnome-patch-translation), network +connection and lot of time. + + +If you want to update translations (long process: update configuration) +============================================================================ + +Just now the file upstream-collect.lst is automatically generated by +lower mentioned tools. + +You need a complete binary RPM repository available on a filesystem and +refer to it in create-config.conf + +Then you can run following command in unpacked sources directory: + +# collect possible po domains from rpm packages +./create-tlst-step1-list-all-po-projects.sh +# scan upstream branches +./create-tlst-step2-create-gnome_svn.sh + +Then continue as above. diff --git a/translation-update-upstream-README b/translation-update-upstream-README new file mode 100644 index 0000000..9a9b61b --- /dev/null +++ b/translation-update-upstream-README @@ -0,0 +1,5 @@ +This is a source of translation update files intended for use during +compilation of packages. After unpacking, before starting to patch and +build the package, simply call translation-update-upstream. + +See HOWTO for more. diff --git a/translation-update-upstream.changes b/translation-update-upstream.changes new file mode 100644 index 0000000..d8d0d5a --- /dev/null +++ b/translation-update-upstream.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Feb 11 15:32:59 CET 2009 - sbrabec@suse.cz + +- Modularization of package lists. +- Make possible update of a single translation. +- Added pidgin. + +------------------------------------------------------------------- +Fri Feb 6 16:32:55 CET 2009 - sbrabec@suse.cz + +- New SuSE package (FATE#301344). + diff --git a/translation-update-upstream.sh b/translation-update-upstream.sh new file mode 100644 index 0000000..ae2ca28 --- /dev/null +++ b/translation-update-upstream.sh @@ -0,0 +1,84 @@ +#! /bin/bash + +set -o errexit + +if test "$1" = "--help" ; then + echo "Upstream translation update tool works in top directory of unpacked source code." + echo "Usage: $0 [translation_directory]" +fi + +# Update all known mechanisms to add language: +function linguas_update { + if test -f LINGUAS ; then + echo "Adding $LNG to LINGUAS." + echo $LNG >>LINGUAS + fi + if test -f $OLDPWD/configure.ac ; then + if grep -q 'ALL_LINGUAS=' $OLDPWD/configure.ac ; then + echo "Adding $LNG to configure.ac." + sed -i 's/ALL_LINGUAS="/&'$LNG' /;s/\(ALL_LINGUAS=\)\([^"]\|$\)/\1"'$LNG' "\2/' $OLDPWD/configure.ac + fi + fi + if test -f $OLDPWD/configure.in ; then + if grep -q 'ALL_LINGUAS=' $OLDPWD/configure.in ; then + echo "Adding $LNG to configure.in." + sed -i 's/ALL_LINGUAS="/&'$LNG' /;s/\(ALL_LINGUAS=\)\([^"]\|$\)/\1"'$LNG' "\2/' $OLDPWD/configure.in + fi + fi + if test -f $OLDPWD/configure ; then + if grep -q 'ALL_LINGUAS=' $OLDPWD/configure ; then + echo "Adding $LNG to configure." + sed -i 's/ALL_LINGUAS="/&'$LNG' /;s/\(ALL_LINGUAS=\)\([^"]\|$\)/\1"'$LNG' "\2/' $OLDPWD/configure + fi + fi +} + +DIR=${1:-po} + +cd $DIR + +intltool-update --pot + +POT_NOT_UNIQUE=false +for POT in *.pot ; do + if $POT_NOT_UNIQUE ; then + echo "ERROR: Directory $DIR contains more than one .pot file." + exit 1 + fi + POT_NOT_UNIQUE=true + DOMAIN=${POT%.pot} + + # STRING_COLLECT_MODE is a special mode used during string + # collection. STRING_COLLECT_DIR must be set as well. + if test "$STRING_COLLECT_MODE" = 1 ; then + mkdir $STRING_COLLECT_DIR/$DOMAIN + cp -a $POT $STRING_COLLECT_DIR/$DOMAIN + cp -a *.po $STRING_COLLECT_DIR/$DOMAIN + else + if test -d /usr/share/translation-update-upstream ; then + if test -d /usr/share/translation-update-upstream/$DOMAIN ; then + for PO_PATH in /usr/share/translation-update-upstream/$DOMAIN/*.po ; do + PO=${PO_PATH##*/} + LNG=${PO%.po} + if test -f $PO ; then + echo "Updating $PO using translation-update-upstream." + # PO_PATH is first: Update any string, even if it was already translated. + # Swap $PO_PATH and $PO to disable this behavior. + msgcat --use-first $PO_PATH $PO -o $PO.new + msgmerge --no-fuzzy-matching --compendium=$PO_PATH -o $PO $PO.new $POT + rm $PO.new + else + echo "Adding $PO from translation-update-upstream." + cp -a $PO_PATH $PO + linguas_update + fi + done + else + echo "WARNING: Package translation-update-upstream does not contain any update for $DOMAIN." + fi + else + echo "ERROR: Package translation-update-upstream is not installed. Please update your BuildRequires!" + exit 1 + fi + fi +done diff --git a/translation-update-upstream.spec b/translation-update-upstream.spec new file mode 100644 index 0000000..6aa891f --- /dev/null +++ b/translation-update-upstream.spec @@ -0,0 +1,97 @@ +# +# spec file for package translation-update-upstream (Version 20090206.1) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: translation-update-upstream +License: GPL v2 or later +Group: System/Localization +Version: 20090206.1 +Release: 1 +Summary: Tool for Translation Update from Upstream +Source: %{name}-%{version}.tar.bz2 +Source1: %{name}.sh +Source2: %{name}-AUTHORS +Source3: %{name}-COPYING +Source4: %{name}-README +Source5: %{name}-HOWTO +# Files below are package maintainer tools, not used for package build: +Source50: upstream-collect.sh +Source51: upstream-collect.conf +Source52: upstream-collect-template.hook +Source53: create-tlst-step1-list-all-po-projects.sh +Source54: create-tlst-step2-create-gnome_svn.sh +Source55: create-tlst.conf +# Configuration files for package maintainer tools: +Source60: upstream-gnome_svn.tlst +Source61: upstream-gnome_svn.hook +Source62: upstream-gnome-generic.tlst +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: coreutils gettext-tools grep intltool sed +BuildArch: noarch + +%description +This is a tool providing update of translations using available +upstream resources. + +The tool tool is intended for use during package compilation as a first +command after unpacking of source code. + +For more see README and HOWTO. + +This package also includes translation update data files. + + + +Authors: +-------- + Stanislav Brabec + +%prep +%setup -q -a0 -c %{name}-%{version} +cp -a %{S:1} translation-update-upstream +chmod +x translation-update-upstream +cp -a %{S:2} AUTHORS +cp -a %{S:3} COPYING +cp -a %{S:4} README +cp -a %{S:5} HOWTO + +%build + +%install +mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} +cp -a po/* $RPM_BUILD_ROOT%{_datadir}/%{name} +install -d $RPM_BUILD_ROOT%{_bindir} +install translation-update-upstream $RPM_BUILD_ROOT%{_bindir}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr (-,root,root) +%doc AUTHORS COPYING README HOWTO +%{_bindir}/* +%{_datadir}/%{name} + +%changelog +* Wed Feb 11 2009 sbrabec@suse.cz +- Modularization of package lists. +- Make possible update of a single translation. +- Added pidgin. +* Fri Feb 06 2009 sbrabec@suse.cz +- New SuSE package (FATE#301344). diff --git a/upstream-collect-template.hook b/upstream-collect-template.hook new file mode 100644 index 0000000..b183372 --- /dev/null +++ b/upstream-collect-template.hook @@ -0,0 +1,20 @@ +#!/bin/bash +if test -z "$PACKAGE" ; then + echo "This is a hook file for upstream-collect.sh. It cannot be called separately." + exit 255 +fi + +# This is just a template of a hook file. If you need a hook, give it +# a name foo.hook, where foo.tlst is a name of your .tlst file. Hook +# is called for each line of the .tlst file after evaluation of +# $RPMPKGDIR, but before each further processing. + +echo "Here are variables from the tlst file: $PACKAGE $DOMAIN $METHOD $REPO $DIR $BRANCH (read only)" +echo "Working directory: $WORK_DIR (read only)" +echo "Directory, where your package source will be placed: $RPMPKGDIR (read only)" + +# directory in the remote repostory: +REPODIR=$DIR + +# directory with the the RPM po files +RPMPODIR$(echo $RPMPKGDIR/BUILD/*/${DIR#*/}) diff --git a/upstream-collect.conf b/upstream-collect.conf new file mode 100644 index 0000000..79e7794 --- /dev/null +++ b/upstream-collect.conf @@ -0,0 +1,8 @@ +# upstream-collect.conf: Configuration for updating of translation-update-upstream package. +# + +# osc repository with packages +OSC_REPOSITORY=openSUSE:Factory + +# osc server, empty for using of the osc default +OSC_APIURL= diff --git a/upstream-collect.sh b/upstream-collect.sh new file mode 100644 index 0000000..15eba2f --- /dev/null +++ b/upstream-collect.sh @@ -0,0 +1,293 @@ +#!/bin/bash + +# This program collects all upstream translations defined in +# configuration and merges them together. + +# If you want to use po files for completing of translations, you can remove --no-fuzzy-matching. +# It will run much slower, but you could start with fuzzy matches. + +WORK_DIR=$PWD +DEBUG=false + +set -o errexit +shopt -s nullglob + +source ${0%.sh}.conf + +function rpmprep { + RPMDIR=$HOME/.var.rpmpatch$$ + rm -rf BUILD $HOME/.var.rpmpatch$$ + trap "rm -rf $RPMDIR" 0 + mkdir -p BUILD $RPMDIR + cat >$RPMDIR/macros <$RPMDIR/rpmrc < only_new. + echo "Usage: $0 [ package | only_new ]" + exit + ;; + # no arguments: process everything + "" ) + ;; + * ) + ONLY_PACKAGE="$1" + FULL_PROCESS=false + ;; +esac + +rm -rf UPSTREAM +mkdir UPSTREAM +if ! test -d STAMPS ; then + mkdir PACKAGES UPDATE STAMPS +fi + +if ! $FULL_PROCESS ; then + # more tarballs are available => use the latest one + # FIXME: Fix 20090213.10 < 20090213.9 + # (but it should not happen for people who update and submit) + for ARCHIVE_ in translation-update-upstream-*.tar.bz2 ; do + ARCHIVE=$ARCHIVE_ + done + if ! test -d UPDATE_OLD ; then + mkdir UPDATE_OLD + cd UPDATE_OLD + tar -jxf ../$ARCHIVE + # If it is not a full process, increment only release + # SNAPSHOT 20090213 -> 20090213.1, 20090213.1 -> 20090213.2 + fi + SNAPSHOT=${ARCHIVE#translation-update-upstream-} + SNAPSHOT=${SNAPSHOT%.tar.bz2} + SNAPSHOT_PART1=${SNAPSHOT%.*} + SNAPSHOT_PART2=${SNAPSHOT#*.} + if test "$SNAPSHOT_PART1" = "$SNAPSHOT" ; then + SNAPSHOT_PART2=1 + else + let SNAPSHOT_PART2++ + fi + SNAPSHOT=$SNAPSHOT_PART1.$SNAPSHOT_PART2 + cd .. +fi + +for TLST in *.tlst ; do + exec <$WORK_DIR/$TLST + + SERIAL=0 + while read PACKAGE DOMAIN METHOD REPO DIR BRANCH ; do + + # Continue for empty lines and comments + if test "${PACKAGE###}" != "$PACKAGE" ; then + continue + fi + if test -z "$PACKAGE" ; then + continue + fi + + echo + echo "$(tput setf 3)Processing: package=$PACKAGE gettext-package=$DOMAIN method=$METHOD repository=$REPO directory=$DIR branch=${BRANCH:-HEAD}$(tput init)" + + # NOTE: Force a limitation: tlst rules for one package must be placed on contiguous line sequence + if ! $DEBUG ; then + if test "$OLD_PACKAGE" != "$PACKAGE" ; then + if test -n "$RPMPKGDIR" ; then + rm -rf $RPMPKGDIR + fi + fi + OLD_PACKAGE=$PACKAGE + fi + + if test -d $WORK_DIR/STAMPS/$PACKAGE/$DOMAIN/$METHOD/${REPO//[\/:.]/_}/$DIR/${BRANCH:-HEAD} ; then + echo " Already successfully processed. Skipping..." + continue + fi + + if test -n "$ONLY_PACKAGE" ; then + if test "$ONLY_PACKAGE" != "$PACKAGE" ; then + if test -d $WORK_DIR/UPDATE_OLD/po/$DOMAIN ; then + if test -d $WORK_DIR/UPDATE/po/$DOMAIN ; then + echo "Should not happen. Internal error." + exit 255 + else + echo " Not scheduled to process. Recycling old update..." + mkdir -p $WORK_DIR/UPDATE/po + mv $WORK_DIR/UPDATE_OLD/po/$DOMAIN $WORK_DIR/UPDATE/po/ + fi + else + if test -d $WORK_DIR/UPDATE/po/$DOMAIN ; then + echo " Already recycled old update..." + else + echo " Not scheduled to process. No update available..." + fi + fi + mkdir -p $WORK_DIR/STAMPS/$PACKAGE/$DOMAIN/$METHOD/${REPO//[\/:.]/_}/$DIR/${BRANCH:-HEAD} + touch $WORK_DIR/STAMPS/$PACKAGE/.builddir_ok + continue + fi + fi + + cd $WORK_DIR/PACKAGES + + RPMPKGDIR=$(echo $WORK_DIR/PACKAGES/$OSC_REPOSITORY/$PACKAGE) + + if ! test -f $WORK_DIR/STAMPS/$PACKAGE/.builddir_ok ; then + if ! test -d "$RPMPKGDIR" ; then + osc ${OSC_APIURL:+--apisrv=$OSC_APIURL} checkout --expand-link $OSC_REPOSITORY $PACKAGE + else + rm -rf "$RPMPKGDIR" $WORK_DIR/STAMPS/$PACKAGE + echo "Removed possibly incorrect temporary files from previous runs. Please re-run $0 now." + exit 1 + fi + RPMPKGDIR=$(echo $WORK_DIR/PACKAGES/$OSC_REPOSITORY/$PACKAGE) + cd $RPMPKGDIR + rpmprep $PACKAGE.spec + else + # During processing, builddir may contain incomplete po files: + rm $WORK_DIR/STAMPS/$PACKAGE/.builddir_ok + fi + REPODIR=$DIR + RPMPODIR=$(echo $RPMPKGDIR/BUILD/*/${DIR#*/}) + + if test -f ${TLST%.tlst}.hook ; then + source ${TLST%.tlst}.hook + fi + + cd $RPMPODIR + if ! intltool-update --gettext-package=$DOMAIN --pot ; then + if test -f $DOMAIN.pot ; then + echo >>$WORK_DIR/upstream-collect.log "package=$PACKAGE gettext-package=$DOMAIN method=$METHOD repository=$REPO directory=$DIR branch=${BRANCH:-HEAD}: intltool-update error, continuing with original $DOMAIN.pot" + else + echo >>$WORK_DIR/upstream-collect.log "package=$PACKAGE gettext-package=$DOMAIN method=$METHOD repository=$REPO directory=$DIR branch=${BRANCH:-HEAD}: intltool-update error, no way to update" + mkdir -p $WORK_DIR/STAMPS/$PACKAGE/$DOMAIN/$METHOD/${REPO//[\/:.]/_}/$REPODIR/${BRANCH:-HEAD} + continue + fi + fi + + cd $WORK_DIR/UPSTREAM + let SERIAL++ || : + mkdir $SERIAL + cd $SERIAL + + case "$METHOD" in + cvs ) + cvs -z3 -d:pserver:anoncvs@$REPO co $REPODIR $BRANCH + cd $REPODIR + ;; + svn ) + if test -z "$BRANCH" ; then + svn co $REPO/${REPODIR%%/*}/trunk/${REPODIR#*/} + else + svn co $REPO/${REPODIR%%/*}/branches/$BRANCH/${REPODIR#*/} + fi + cd ${REPODIR##*/} + ;; + tbz ) + wget -N $REPO + tar -jxf ${REPO##*/} + cd $REPODIR + ;; + tgz ) + wget -N $REPO + tar -zxf ${REPO##*/} + cd $REPODIR + ;; + * ) + echo "$PACKAGE: Unknown update method $METHOD" + exit 1 + ;; + esac + + for PO in *.po ; do + # step 0: Merge new po file into old project. Removes unused (too new) translations. + if ! msgmerge --no-fuzzy-matching $PO $RPMPODIR/$DOMAIN.pot -o ${PO%.po}-backport.po ; then + echo >>$WORK_DIR/upstream-collect.log "package=$PACKAGE gettext-package=$DOMAIN method=$METHOD repository=$REPO directory=$DIR branch=${BRANCH:-HEAD} po=$PO: msgmerge error" + continue + fi + if test -f $RPMPODIR/$PO ; then + # step 1: Clean the po file to be safe. + if ! msgmerge --no-fuzzy-matching $RPMPODIR/$PO $RPMPODIR/$DOMAIN.pot -o $RPMPODIR/${PO%.po}-clean.po ; then + echo >>$WORK_DIR/upstream-collect.log "package=$PACKAGE gettext-package=$DOMAIN directory=$RPMPODIR po=$PO: package msgmerge error" + # Failed initial msgmerge is fatal. There is no way to update. Build may fail. + continue + fi + # Do the magic: + # step 2: Merge new po and previous updates (if any). + if test -f ${PO%.po}-updates.po ; then + msgcat --force-po --use-first ${PO%.po}-backport.po $RPMPODIR/${PO%.po}-updates.po -o ${PO%.po}-join.po + else + cp -a ${PO%.po}-backport.po ${PO%.po}-join.po + fi + # step 3: Join both translations, without --use-first string changes will disappear as fuzzy. + msgcat --force-po ${PO%.po}-join.po $RPMPODIR/${PO%.po}-clean.po -o ${PO%.po}-allfz.po + msgcat --use-first --force-po ${PO%.po}-join.po $RPMPODIR/${PO%.po}-clean.po -o ${PO%.po}-all.po + # step 4: Find string fixes (existed before, now different). + msgcat --force-po --unique ${PO%.po}-all.po ${PO%.po}-allfz.po -o ${PO%.po}-fixes.po + # step 5: Find newly translated strings (translation removal is not supported). + msgcat --force-po --unique $RPMPODIR/${PO%.po}-clean.po ${PO%.po}-all.po -o ${PO%.po}-additions.po + # step 6: Join both to collect all known fixes. + msgcat ${PO%.po}-fixes.po ${PO%.po}-additions.po -o $RPMPODIR/${PO%.po}-updatesraw.po + # Are there any updated? If no, game over. + if test -f $RPMPODIR/${PO%.po}-updatesraw.po ; then + # step 7: Ugly game to get the latest po file header. + sed -n '1,/^$/p' <${PO%.po}-backport.po >${PO%.po}-header.po + # step 8: And yet another ugly game to get rid commented out dust. + sed '/#~/d' <$RPMPODIR/${PO%.po}-updatesraw.po >$RPMPODIR/${PO%.po}-updates.po~ + # step 9: Merge correct header to the updates file. + msgcat --no-location --use-first ${PO%.po}-header.po $RPMPODIR/${PO%.po}-updates.po~ -o $RPMPODIR/${PO%.po}-updates.po + fi + else + # step 1: Merge new po and previous updates (if any). + if test -f ${PO%.po}-updates.po ; then + msgcat --force-po --use-first ${PO%.po}-backport.po $RPMPODIR/${PO%.po}-updates.po -o ${PO%.po}-updates.po~ + mv ${PO%.po}-updates.po~ ${PO%.po}-updates.po + else + cp -a ${PO%.po}-backport.po ${PO%.po}-updates.po + fi + fi + done + + cd $RPMPODIR + for POX in *-updates.po ; do + PO=${POX/-updates/} + mkdir -p $WORK_DIR/UPDATE/po/$DOMAIN + cp -a $POX $WORK_DIR/UPDATE/po/$DOMAIN/$PO + done + + mkdir -p $WORK_DIR/STAMPS/$PACKAGE/$DOMAIN/$METHOD/${REPO//[\/:.]/_}/$DIR/${BRANCH:-HEAD} + touch $WORK_DIR/STAMPS/$PACKAGE/.builddir_ok + + if ! $DEBUG ; then + rm -rf $WORK_DIR/UPSTREAM/$SERIAL + fi + + done + +done + +if ! $DEBUG ; then + if test -n "$RPMPKGDIR" ; then + rm -rf $RPMPKGDIR + fi +fi + +cd $WORK_DIR/UPDATE +tar -j -c -f $WORK_DIR/translation-update-upstream-$SNAPSHOT.tar.bz2 po + +cd $WORK_DIR +if ! $DEBUG ; then + rm -rf UPSTREAM PACKAGES UPDATE UPDATE_OLD STAMPS +fi diff --git a/upstream-gnome-generic.tlst b/upstream-gnome-generic.tlst new file mode 100644 index 0000000..d4f16a9 --- /dev/null +++ b/upstream-gnome-generic.tlst @@ -0,0 +1,8 @@ +# package domain method repository dir branch +gstreamer-0_10 gstreamer-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gstreamer/po +gstreamer-0_10-plugins-base gst-plugins-base-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gst-plugins-base/po +gstreamer-0_10-plugins-bad gst-plugins-bad-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gst-plugins-bad/po +gstreamer-0_10-plugins-ugly gst-plugins-ugly-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gst-plugins-ugly/po +libgda libgda-3 svn http://svn.gnome.org/svn libgda/po release-3-0-branch +pidgin pidgin tbz http://downloads.sourceforge.net/pidgin/pidgin-2.5.2.tar.bz2 pidgin-2.5.2/po +pidgin pidgin tbz http://downloads.sourceforge.net/pidgin/pidgin-2.5.3.tar.bz2 pidgin-2.5.3/po diff --git a/upstream-gnome_svn.hook b/upstream-gnome_svn.hook new file mode 100644 index 0000000..3003e25 --- /dev/null +++ b/upstream-gnome_svn.hook @@ -0,0 +1,22 @@ +#!/bin/bash +if test -z "$PACKAGE" ; then + echo "This is a hook file for upstream-collect.sh. It cannot be called separately." + exit 255 +fi + +# For other versions than sles10: +# Hack for nm-applet, which uses different hierrarchy than upstream: +#if test $DOMAIN = nm-applet ; then +# RPMPODIR=$(echo $RPMPKGDIR/BUILD/*/nm-applet-*/${DIR#*/}) +#fi +# Hack for banshee and beagle, strangely placed to svn +if test $DOMAIN = banshee-1 ; then + REPODIR=banshee/banshee/po +fi +if test $DOMAIN = beagle -a "$BRANCH" = "" ; then + REPODIR=beagle/beagle/po +fi +# Hack for gnome-themes, which bundles several projects in SuSE: +if test $DOMAIN = gnome-themes ; then + RPMPODIR=$(echo $RPMPKGDIR/BUILD/gnome-themes-*/${DIR#*/}) +fi diff --git a/upstream-gnome_svn.tlst b/upstream-gnome_svn.tlst new file mode 100644 index 0000000..a9f3335 --- /dev/null +++ b/upstream-gnome_svn.tlst @@ -0,0 +1,232 @@ +# This file was generated Thu Feb 5 18:09:02 CET 2009 by create-tlst-step2-create-gnome_svn.sh. +# package domain method repository dir branch +NetworkManager NetworkManager svn http://svn.gnome.org/svn network-manager-applet/po +PolicyKit-gnome PolicyKit-gnome svn http://svn.gnome.org/svn policykit-gnome/po +accerciser accerciser svn http://svn.gnome.org/svn accerciser/po gnome-2-24 +accerciser accerciser svn http://svn.gnome.org/svn accerciser/po +alacarte alacarte svn http://svn.gnome.org/svn alacarte/po +anjuta anjuta svn http://svn.gnome.org/svn anjuta/po gnome-2-24 +anjuta anjuta svn http://svn.gnome.org/svn anjuta/po +at-spi at-spi svn http://svn.gnome.org/svn at-spi/po gnome-2-24 +at-spi at-spi svn http://svn.gnome.org/svn at-spi/po +atk atk10 svn http://svn.gnome.org/svn atk/po gnome-2-24 +atk atk10 svn http://svn.gnome.org/svn atk/po +balsa balsa svn http://svn.gnome.org/svn balsa/po +banshee-1 banshee-1 svn http://svn.gnome.org/svn banshee/po +beagle beagle svn http://svn.gnome.org/svn beagle/po beagle-0.2.16 +beagle beagle svn http://svn.gnome.org/svn beagle/po +brasero brasero svn http://svn.gnome.org/svn brasero/po +bug-buddy bug-buddy svn http://svn.gnome.org/svn bug-buddy/po gnome-2-24 +bug-buddy bug-buddy svn http://svn.gnome.org/svn bug-buddy/po +cheese cheese svn http://svn.gnome.org/svn cheese/po gnome-2-24 +cheese cheese svn http://svn.gnome.org/svn cheese/po +conduit conduit svn http://svn.gnome.org/svn conduit/po gnome-2-24 +conduit conduit svn http://svn.gnome.org/svn conduit/po +conglomerate conglomerate svn http://svn.gnome.org/svn conglomerate/po +contact-lookup-applet contact-lookup-applet svn http://svn.gnome.org/svn contact-lookup-applet/po +dasher dasher svn http://svn.gnome.org/svn dasher/po +deskbar-applet deskbar-applet svn http://svn.gnome.org/svn deskbar-applet/po gnome-2-24 +deskbar-applet deskbar-applet svn http://svn.gnome.org/svn deskbar-applet/po +devhelp devhelp svn http://svn.gnome.org/svn devhelp/po +devilspie devilspie svn http://svn.gnome.org/svn devilspie/po +dia dia svn http://svn.gnome.org/svn dia/po dia-0-96 +dia dia svn http://svn.gnome.org/svn dia/po dia_0_96 +dia dia svn http://svn.gnome.org/svn dia/po +eel eel-2.0 svn http://svn.gnome.org/svn eel/po gnome-2-24 +eel eel-2.0 svn http://svn.gnome.org/svn eel/po +ekiga ekiga svn http://svn.gnome.org/svn ekiga/po gnome-2-24 +ekiga ekiga svn http://svn.gnome.org/svn ekiga/po +empathy empathy svn http://svn.gnome.org/svn empathy/po gnome-2-24 +empathy empathy svn http://svn.gnome.org/svn empathy/po +eog eog svn http://svn.gnome.org/svn eog/po gnome-2-24 +eog eog svn http://svn.gnome.org/svn eog/po +epiphany epiphany svn http://svn.gnome.org/svn epiphany/po gnome-2-24 +epiphany epiphany svn http://svn.gnome.org/svn epiphany/po +epiphany-extensions epiphany-extensions-2.24 svn http://svn.gnome.org/svn epiphany-extensions/po gnome-2-24 +epiphany-extensions epiphany-extensions-2.24 svn http://svn.gnome.org/svn epiphany-extensions/po +evince evince svn http://svn.gnome.org/svn evince/po gnome-2-24 +evince evince svn http://svn.gnome.org/svn evince/po +evolution evolution-2.24 svn http://svn.gnome.org/svn evolution/po gnome-2-24 +evolution evolution-2.24 svn http://svn.gnome.org/svn evolution/po +evolution-data-server evolution-data-server-2.24 svn http://svn.gnome.org/svn evolution-data-server/po gnome-2-24 +evolution-data-server evolution-data-server-2.24 svn http://svn.gnome.org/svn evolution-data-server/po +evolution-exchange evolution-exchange-2.24 svn http://svn.gnome.org/svn evolution-exchange/po gnome-2-24 +evolution-exchange evolution-exchange-2.24 svn http://svn.gnome.org/svn evolution-exchange/po +evolution-webcal evolution-webcal svn http://svn.gnome.org/svn evolution-webcal/po +f-spot f-spot svn http://svn.gnome.org/svn f-spot/po +file-roller file-roller svn http://svn.gnome.org/svn file-roller/po gnome-2-24 +file-roller file-roller svn http://svn.gnome.org/svn file-roller/po +gDesklets gdesklets svn http://svn.gnome.org/svn gdesklets/po +gbrainy gbrainy svn http://svn.gnome.org/svn gbrainy/po +gcalctool gcalctool svn http://svn.gnome.org/svn gcalctool/po gnome-2-24 +gcalctool gcalctool svn http://svn.gnome.org/svn gcalctool/po +gconf-editor gconf-editor svn http://svn.gnome.org/svn gconf-editor/po gnome-2-24 +gconf-editor gconf-editor svn http://svn.gnome.org/svn gconf-editor/po +gdl gdl-1 svn http://svn.gnome.org/svn gdl/po gnome-2-24 +gdl gdl-1 svn http://svn.gnome.org/svn gdl/po +gdm gdm svn http://svn.gnome.org/svn gdm/po gnome-2-24 +gdm gdm svn http://svn.gnome.org/svn gdm/po +gedit gedit svn http://svn.gnome.org/svn gedit/po gnome-2-24 +gedit gedit svn http://svn.gnome.org/svn gedit/po +gftp gftp svn http://svn.gnome.org/svn gftp/po +ghex ghex-2.0 svn http://svn.gnome.org/svn ghex/po +gimp gimp20 svn http://svn.gnome.org/svn gimp/po gimp-2-6 +gimp gimp20 svn http://svn.gnome.org/svn gimp/po +gimp gimp20-libgimp svn http://svn.gnome.org/svn gimp/po-libgimp gimp-2-6 +gimp gimp20-libgimp svn http://svn.gnome.org/svn gimp/po-libgimp +gimp gimp20-python svn http://svn.gnome.org/svn gimp/po-python gimp-2-6 +gimp gimp20-python svn http://svn.gnome.org/svn gimp/po-python +gimp gimp20-script-fu svn http://svn.gnome.org/svn gimp/po-script-fu gimp-2-6 +gimp gimp20-script-fu svn http://svn.gnome.org/svn gimp/po-script-fu +gimp gimp20-std-plug-ins svn http://svn.gnome.org/svn gimp/po-plug-ins gimp-2-6 +gimp gimp20-std-plug-ins svn http://svn.gnome.org/svn gimp/po-plug-ins +gimp gimp20-tips svn http://svn.gnome.org/svn gimp/po gimp-2-6 +gimp gimp20-tips svn http://svn.gnome.org/svn gimp/po +gimp-gap gimp20-gap svn http://svn.gnome.org/svn gimp-gap/po +glade glade-2.0 svn http://svn.gnome.org/svn glade/po +glade3 glade3 svn http://svn.gnome.org/svn glade3/po +gnome-applets gnome-applets-2.0 svn http://svn.gnome.org/svn gnome-applets/po gnome-2-24 +gnome-applets gnome-applets-2.0 svn http://svn.gnome.org/svn gnome-applets/po +gnome-backgrounds gnome-backgrounds svn http://svn.gnome.org/svn gnome-backgrounds/po +gnome-blog gnome-blog svn http://svn.gnome.org/svn gnome-blog/po +gnome-bluetooth gnome-bluetooth svn http://svn.gnome.org/svn gnome-bluetooth/po +gnome-build gbf-1 svn http://svn.gnome.org/svn gnome-build/po gnome-2-24 +gnome-build gbf-1 svn http://svn.gnome.org/svn gnome-build/po +gnome-commander gnome-commander svn http://svn.gnome.org/svn gnome-commander/po +gnome-control-center gnome-control-center-2.0 svn http://svn.gnome.org/svn gnome-control-center/po gnome-2-24 +gnome-control-center gnome-control-center-2.0 svn http://svn.gnome.org/svn gnome-control-center/po +gnome-desktop gnome-desktop-2.0 svn http://svn.gnome.org/svn gnome-desktop/po gnome-2-24 +gnome-desktop gnome-desktop-2.0 svn http://svn.gnome.org/svn gnome-desktop/po +gnome-doc-utils gnome-doc-utils svn http://svn.gnome.org/svn gnome-doc-utils/po gnome-2-24 +gnome-doc-utils gnome-doc-utils svn http://svn.gnome.org/svn gnome-doc-utils/po +gnome-games gnome-games svn http://svn.gnome.org/svn gnome-games/po gnome-2-24 +gnome-games gnome-games svn http://svn.gnome.org/svn gnome-games/po +gnome-keyring gnome-keyring svn http://svn.gnome.org/svn gnome-keyring/po gnome-2-24 +gnome-keyring gnome-keyring svn http://svn.gnome.org/svn gnome-keyring/po +gnome-mag gnome-mag svn http://svn.gnome.org/svn gnome-mag/po +gnome-main-menu gnome-main-menu svn http://svn.gnome.org/svn gnome-main-menu/po +gnome-media gnome-media-2.0 svn http://svn.gnome.org/svn gnome-media/po gnome-2-24 +gnome-media gnome-media-2.0 svn http://svn.gnome.org/svn gnome-media/po +gnome-menus gnome-menus svn http://svn.gnome.org/svn gnome-menus/po gnome-2-24 +gnome-menus gnome-menus svn http://svn.gnome.org/svn gnome-menus/po +gnome-mime-data gnome-mime-data svn http://svn.gnome.org/svn gnome-mime-data/po +gnome-mount gnome-mount svn http://svn.gnome.org/svn gnome-mount/po +gnome-netstatus gnome-netstatus svn http://svn.gnome.org/svn gnome-netstatus/po gnome-2-24 +gnome-netstatus gnome-netstatus svn http://svn.gnome.org/svn gnome-netstatus/po +gnome-nettool gnome-nettool svn http://svn.gnome.org/svn gnome-nettool/po gnome-2-24 +gnome-nettool gnome-nettool svn http://svn.gnome.org/svn gnome-nettool/po +gnome-packagekit gnome-packagekit svn http://svn.gnome.org/svn gnome-packagekit/po +gnome-panel gnome-panel-2.0 svn http://svn.gnome.org/svn gnome-panel/po gnome-2-24 +gnome-panel gnome-panel-2.0 svn http://svn.gnome.org/svn gnome-panel/po +gnome-pilot gnome-pilot svn http://svn.gnome.org/svn gnome-pilot/po +gnome-pilot-conduits gnome-pilot-conduits svn http://svn.gnome.org/svn gnome-pilot-conduits/po +gnome-power-manager gnome-power-manager svn http://svn.gnome.org/svn gnome-power-manager/po gnome-2-24 +gnome-power-manager gnome-power-manager svn http://svn.gnome.org/svn gnome-power-manager/po +gnome-reset gnome-reset svn http://svn.gnome.org/svn gnome-reset/po +gnome-screensaver gnome-screensaver svn http://svn.gnome.org/svn gnome-screensaver/po gnome-2-24 +gnome-screensaver gnome-screensaver svn http://svn.gnome.org/svn gnome-screensaver/po +gnome-session gnome-session-2.0 svn http://svn.gnome.org/svn gnome-session/po gnome-2-24 +gnome-session gnome-session-2.0 svn http://svn.gnome.org/svn gnome-session/po +gnome-settings-daemon gnome-settings-daemon svn http://svn.gnome.org/svn gnome-settings-daemon/po gnome-2-24 +gnome-settings-daemon gnome-settings-daemon svn http://svn.gnome.org/svn gnome-settings-daemon/po +gnome-system-monitor gnome-system-monitor svn http://svn.gnome.org/svn gnome-system-monitor/po gnome-2-24 +gnome-system-monitor gnome-system-monitor svn http://svn.gnome.org/svn gnome-system-monitor/po +gnome-terminal gnome-terminal svn http://svn.gnome.org/svn gnome-terminal/po gnome-2-24 +gnome-terminal gnome-terminal svn http://svn.gnome.org/svn gnome-terminal/po +gnome-themes gnome-themes svn http://svn.gnome.org/svn gnome-themes/po gnome-2-24 +gnome-themes gnome-themes svn http://svn.gnome.org/svn gnome-themes/po +gnome-themes-extras gnome-themes-extras svn http://svn.gnome.org/svn gnome-themes-extras/po +gnome-user-share gnome-user-share svn http://svn.gnome.org/svn gnome-user-share/po +gnome-utils gnome-utils-2.0 svn http://svn.gnome.org/svn gnome-utils/po gnome-2-24 +gnome-utils gnome-utils-2.0 svn http://svn.gnome.org/svn gnome-utils/po +gnome-web-photo gnome-web-photo svn http://svn.gnome.org/svn gnome-web-photo/po +gnomeicu gnomeicu svn http://svn.gnome.org/svn gnomeicu/po +gnumeric gnumeric svn http://svn.gnome.org/svn gnumeric/po +gnumeric gnumeric-functions svn http://svn.gnome.org/svn gnumeric/po +goffice goffice-0.7.2 svn http://svn.gnome.org/svn goffice/po +gok gok svn http://svn.gnome.org/svn gok/po gnome-2-24 +gok gok svn http://svn.gnome.org/svn gok/po +goobox goobox svn http://svn.gnome.org/svn goobox/po +goocanvas goocanvas svn http://svn.gnome.org/svn goocanvas/po +gstreamer-0_10 gstreamer-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gstreamer/po +gstreamer-0_10-plugins-bad gst-plugins-bad-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gst-plugins-bad/po +gstreamer-0_10-plugins-base gst-plugins-base-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gst-plugins-base/po +gstreamer-0_10-plugins-ugly gst-plugins-ugly-0.10 cvs anoncvs.freedesktop.org:/cvs/gstreamer gst-plugins-ugly/po +gtetrinet gtetrinet svn http://svn.gnome.org/svn gtetrinet/po +gthumb gthumb svn http://svn.gnome.org/svn gthumb/po +gtkhtml2 gtkhtml-3.14 svn http://svn.gnome.org/svn gtkhtml2/po +gtksourceview gtksourceview-2.0 svn http://svn.gnome.org/svn gtksourceview/po gnome-2-24 +gtksourceview gtksourceview-2.0 svn http://svn.gnome.org/svn gtksourceview/po +gucharmap gucharmap svn http://svn.gnome.org/svn gucharmap/po gnome-2-24 +gucharmap gucharmap svn http://svn.gnome.org/svn gucharmap/po +gvfs gvfs svn http://svn.gnome.org/svn gvfs/po gnome-2-24 +gvfs gvfs svn http://svn.gnome.org/svn gvfs/po +gwget gwget svn http://svn.gnome.org/svn gwget/po +istanbul istanbul svn http://svn.gnome.org/svn istanbul/po +last-exit last-exit svn http://svn.gnome.org/svn last-exit/po +libbonobo libbonobo-2.0 svn http://svn.gnome.org/svn libbonobo/po +libbonoboui libbonoboui-2.0 svn http://svn.gnome.org/svn libbonoboui/po +libbtctl libbtctl svn http://svn.gnome.org/svn libbtctl/po +libgda libgda-3 svn http://svn.gnome.org/svn libgda/po release-3-0-branch +libgda libgda-3.0 svn http://svn.gnome.org/svn libgda/po +libgnome libgnome-2.0 svn http://svn.gnome.org/svn libgnome/po gnome-2-24 +libgnome libgnome-2.0 svn http://svn.gnome.org/svn libgnome/po +libgnomecanvas libgnomecanvas-2.0 svn http://svn.gnome.org/svn libgnomecanvas/po +libgnomecups libgnomecups svn http://svn.gnome.org/svn libgnomecups/po +libgnomedb libgnomedb-3.0 svn http://svn.gnome.org/svn libgnomedb/po +libgnomekbd libgnomekbd svn http://svn.gnome.org/svn libgnomekbd/po +libgnomeprint libgnomeprint-2.2 svn http://svn.gnome.org/svn libgnomeprint/po +libgnomeprintui libgnomeprintui-2.2 svn http://svn.gnome.org/svn libgnomeprintui/po +libgnomeui libgnomeui-2.0 svn http://svn.gnome.org/svn libgnomeui/po +libgsf libgsf svn http://svn.gnome.org/svn libgsf/po +libgtop libgtop-2.0 svn http://svn.gnome.org/svn libgtop/po gnome-2-24 +libgtop libgtop-2.0 svn http://svn.gnome.org/svn libgtop/po +libgweather libgweather svn http://svn.gnome.org/svn libgweather/po gnome-2-24 +libgweather libgweather svn http://svn.gnome.org/svn libgweather/po +libwnck libwnck svn http://svn.gnome.org/svn libwnck/po gnome-2-24 +libwnck libwnck svn http://svn.gnome.org/svn libwnck/po +memprof memprof svn http://svn.gnome.org/svn memprof/po +mergeant mergeant svn http://svn.gnome.org/svn mergeant/po +metacity metacity svn http://svn.gnome.org/svn metacity/po gnome-2-24 +metacity metacity svn http://svn.gnome.org/svn metacity/po +mousetweaks mousetweaks svn http://svn.gnome.org/svn mousetweaks/po gnome-2-24 +mousetweaks mousetweaks svn http://svn.gnome.org/svn mousetweaks/po +nautilus nautilus svn http://svn.gnome.org/svn nautilus/po gnome-2-24 +nautilus nautilus svn http://svn.gnome.org/svn nautilus/po +nautilus-cd-burner nautilus-cd-burner svn http://svn.gnome.org/svn nautilus-cd-burner/po gnome-2-24 +nautilus-cd-burner nautilus-cd-burner svn http://svn.gnome.org/svn nautilus-cd-burner/po +nautilus-open-terminal nautilus-open-terminal svn http://svn.gnome.org/svn nautilus-open-terminal/po +nautilus-sendto nautilus-sendto svn http://svn.gnome.org/svn nautilus-sendto/po +nautilus-share nautilus-share svn http://svn.gnome.org/svn nautilus-share/po +nemiver nemiver svn http://svn.gnome.org/svn nemiver/po +orca orca svn http://svn.gnome.org/svn orca/po gnome-2-24 +orca orca svn http://svn.gnome.org/svn orca/po +pan pan svn http://svn.gnome.org/svn pan/po +pessulus pessulus svn http://svn.gnome.org/svn pessulus/po gnome-2-24 +pessulus pessulus svn http://svn.gnome.org/svn pessulus/po +planner planner svn http://svn.gnome.org/svn planner/po +pybliographer pybliographer svn http://svn.gnome.org/svn pybliographer/po +rhythmbox rhythmbox svn http://svn.gnome.org/svn rhythmbox/po +sabayon sabayon svn http://svn.gnome.org/svn sabayon/po gnome-2-24 +sabayon sabayon svn http://svn.gnome.org/svn sabayon/po +seahorse seahorse svn http://svn.gnome.org/svn seahorse/po gnome-2-24 +seahorse seahorse svn http://svn.gnome.org/svn seahorse/po +sound-juicer sound-juicer svn http://svn.gnome.org/svn sound-juicer/po gnome-2-24 +sound-juicer sound-juicer svn http://svn.gnome.org/svn sound-juicer/po +swfdec-gnome swfdec-gnome svn http://svn.gnome.org/svn swfdec-gnome/po +tasque tasque svn http://svn.gnome.org/svn tasque/po +tomboy tomboy svn http://svn.gnome.org/svn tomboy/po gnome-2-24 +tomboy tomboy svn http://svn.gnome.org/svn tomboy/po +totem totem svn http://svn.gnome.org/svn totem/po gnome-2-24 +totem totem svn http://svn.gnome.org/svn totem/po +totem-pl-parser totem-pl-parser svn http://svn.gnome.org/svn totem-pl-parser/po gnome-2-24 +totem-pl-parser totem-pl-parser svn http://svn.gnome.org/svn totem-pl-parser/po +vinagre vinagre svn http://svn.gnome.org/svn vinagre/po gnome-2-24 +vinagre vinagre svn http://svn.gnome.org/svn vinagre/po +vino vino svn http://svn.gnome.org/svn vino/po gnome-2-24 +vino vino svn http://svn.gnome.org/svn vino/po +vte vte svn http://svn.gnome.org/svn vte/po +xchat-gnome xchat-gnome svn http://svn.gnome.org/svn xchat-gnome/po +xdg-user-dirs-gtk xdg-user-dirs-gtk svn http://svn.gnome.org/svn xdg-user-dirs-gtk/po +yelp yelp svn http://svn.gnome.org/svn yelp/po +zenity zenity svn http://svn.gnome.org/svn zenity/po