Accepting request 432471 from home:Minton:branches:system:install:head
changed the source of translations to github OBS-URL: https://build.opensuse.org/request/show/432471 OBS-URL: https://build.opensuse.org/package/show/system:install:head/package-translations?expand=0&rev=264
This commit is contained in:
parent
1258e1a402
commit
b9a6b797b5
@ -1,21 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
test -f package-translations.spec || { "cwd must contain package-translations.spec"; exit 1; }
|
||||
|
||||
if test -d "$MY_LCN_PACK_CHECKOUT"; then
|
||||
echo "Updating $MY_LCN_PACK_CHECKOUT"
|
||||
svn up $MY_LCN_PACK_CHECKOUT
|
||||
PWD=$(pwd)
|
||||
if test -d "$MY_PKG_I18N_CHECKOUT"; then
|
||||
echo "Updating $MY_PKG_I18N_CHECKOUT"
|
||||
cd $MY_PKG_I18N_CHECKOUT && git pull && cd $PWD
|
||||
else
|
||||
echo "No \$MY_LCN_PACK_CHECKOUT set, will checkout temporarly"
|
||||
svn export https://svn.opensuse.org/svn/opensuse-i18n/trunk/packages
|
||||
export MY_LCN_PACK_CHECKOUT=$PWD/packages
|
||||
echo "No \$MY_PKG_I18N_CHECKOUT set, will checkout temporarly"
|
||||
git clone https://github.com/opensuse/packages-i18n.git
|
||||
export MY_PKG_I18N_CHECKOUT=$PWD/packages-i18n
|
||||
fi
|
||||
|
||||
rm -rf mo
|
||||
tar xf package-translations.tar.bz2
|
||||
mv mo mo.old
|
||||
mkdir mo
|
||||
for file in $MY_LCN_PACK_CHECKOUT/*/po; do
|
||||
for file in $MY_PKG_I18N_CHECKOUT/*/po; do
|
||||
lang=`echo $file | sed -e "s,/po,,; s,.*/,,"`
|
||||
echo $file $lang
|
||||
msgcat --use-first $file/*.po | msgfmt -o mo/package-translations-$lang.mo -
|
||||
@ -41,11 +41,7 @@ echo "$timestamp - $user"
|
||||
echo
|
||||
echo "- automated update on $timestamp2"
|
||||
echo
|
||||
if head -n 6 $NAME.changes | grep -q "automated update" ; then
|
||||
tail -n +6 $NAME.changes
|
||||
else
|
||||
cat $NAME.changes
|
||||
fi
|
||||
cat $NAME.changes
|
||||
} > $NAME.changes.new
|
||||
mv $NAME.changes.new $NAME.changes
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 2 12:21:02 UTC 2016 - alex239@gmail.com
|
||||
|
||||
- automated update on 2016-10-02
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 1 16:00:02 MSK 2016 - alex239@gmail.com
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:891c647d36bb67325d69836693586ff4df11d442d38a3f5740c1cb11c398e051
|
||||
size 4989010
|
||||
oid sha256:69e1c831e54daec5e75b986aaedd866959e757135231d0061116e9c1c8b18d6c
|
||||
size 4991954
|
||||
|
Loading…
Reference in New Issue
Block a user