translation-update-upstream/create-tlst-step1-list-all-po-projects.sh
Dirk Mueller 7b24771ca3 Accepting request 652658 from home:sbrabec:branches:Base:System
- Update to Factory specific version 20181128 that contains only
  abandoned packages in static.tlst (bsc#1100398).
  *.tlst: Port from SLE15 SP1:
- Comment upstream-collect.conf.
- upstream-collect.sh supplementary script:
  * Make paths compatible with Tumbleweed.
  * Add support for .tar.xz files.
- Improved create-tlst scripts to work with standard DVD medium
  (create-tlst-step1-list-all-po-projects.sh,
  create-tlst-step2-create-gnome_gtp.sh, create-tlst.conf),
  add upstream-gnome_gtp-not-on-media.tlst.
- Move libgnomecanvas dropped in upstream to
  translation-update-static.tar.bz2.
- Add github.tlst.

OBS-URL: https://build.opensuse.org/request/show/652658
OBS-URL: https://build.opensuse.org/package/show/Base:System/translation-update-upstream?expand=0&rev=64
2018-11-30 14:20:07 +00:00

33 lines
775 B
Bash

#!/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
for i in $BINARY_REPO/*/{$BINARY_ARCH,noarch}/*.rpm ; do rpm -q --queryformat=%{name} -p $i ; echo : ; rpm -qlp $i | grep LC_MESSAGES || : ; done |
sed "s~^$BINARY_REPO/suse/($BINARY_ARCH|noarch)~~" >create-tlst-temp-all-po-files.lst
cat create-tlst-temp-all-po-files.lst |
sed '
/:$/ {
h
d
}
/LC_MESSAGES$/d
s:.*/LC_MESSAGES/::
/.*/ {
G
s/\(.*\)\.mo\n\(.*\):/\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