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
|
#!/bin/bash
|
||||||
|
|
||||||
test -f package-translations.spec || { "cwd must contain package-translations.spec"; exit 1; }
|
test -f package-translations.spec || { "cwd must contain package-translations.spec"; exit 1; }
|
||||||
|
PWD=$(pwd)
|
||||||
if test -d "$MY_LCN_PACK_CHECKOUT"; then
|
if test -d "$MY_PKG_I18N_CHECKOUT"; then
|
||||||
echo "Updating $MY_LCN_PACK_CHECKOUT"
|
echo "Updating $MY_PKG_I18N_CHECKOUT"
|
||||||
svn up $MY_LCN_PACK_CHECKOUT
|
cd $MY_PKG_I18N_CHECKOUT && git pull && cd $PWD
|
||||||
else
|
else
|
||||||
echo "No \$MY_LCN_PACK_CHECKOUT set, will checkout temporarly"
|
echo "No \$MY_PKG_I18N_CHECKOUT set, will checkout temporarly"
|
||||||
svn export https://svn.opensuse.org/svn/opensuse-i18n/trunk/packages
|
git clone https://github.com/opensuse/packages-i18n.git
|
||||||
export MY_LCN_PACK_CHECKOUT=$PWD/packages
|
export MY_PKG_I18N_CHECKOUT=$PWD/packages-i18n
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf mo
|
rm -rf mo
|
||||||
tar xf package-translations.tar.bz2
|
tar xf package-translations.tar.bz2
|
||||||
mv mo mo.old
|
mv mo mo.old
|
||||||
mkdir mo
|
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,.*/,,"`
|
lang=`echo $file | sed -e "s,/po,,; s,.*/,,"`
|
||||||
echo $file $lang
|
echo $file $lang
|
||||||
msgcat --use-first $file/*.po | msgfmt -o mo/package-translations-$lang.mo -
|
msgcat --use-first $file/*.po | msgfmt -o mo/package-translations-$lang.mo -
|
||||||
@ -41,11 +41,7 @@ echo "$timestamp - $user"
|
|||||||
echo
|
echo
|
||||||
echo "- automated update on $timestamp2"
|
echo "- automated update on $timestamp2"
|
||||||
echo
|
echo
|
||||||
if head -n 6 $NAME.changes | grep -q "automated update" ; then
|
cat $NAME.changes
|
||||||
tail -n +6 $NAME.changes
|
|
||||||
else
|
|
||||||
cat $NAME.changes
|
|
||||||
fi
|
|
||||||
} > $NAME.changes.new
|
} > $NAME.changes.new
|
||||||
mv $NAME.changes.new $NAME.changes
|
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
|
Thu Sep 1 16:00:02 MSK 2016 - alex239@gmail.com
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:891c647d36bb67325d69836693586ff4df11d442d38a3f5740c1cb11c398e051
|
oid sha256:69e1c831e54daec5e75b986aaedd866959e757135231d0061116e9c1c8b18d6c
|
||||||
size 4989010
|
size 4991954
|
||||||
|
Loading…
Reference in New Issue
Block a user