electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ec56a4612c0168ed2e01927be7ec2786d024bc19
parent 7b7397a8c7300a1ba1331a3c8fb5383bb0020eb9
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed,  3 Jul 2019 17:36:29 +0200

make_tgz: build locale from deterministic submodule

Diffstat:
Mcontrib/make_tgz | 21++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/contrib/make_tgz b/contrib/make_tgz @@ -7,16 +7,27 @@ ROOT_FOLDER="$CONTRIB"/.. PACKAGES="$ROOT_FOLDER"/packages/ LOCALE="$ROOT_FOLDER"/electrum/locale/ -if [ ! -d "$LOCALE" ]; then - echo "Run pull_locale first!" - exit 1 -fi - if [ ! -d "$PACKAGES" ]; then echo "Run make_packages first!" exit 1 fi +git submodule update --init + +( + rm -rf "$LOCALE" + cd "$CONTRIB/deterministic-build/electrum-locale/" + if ! which msgfmt > /dev/null 2>&1; then + echo "Please install gettext" + exit 1 + fi + for i in ./locale/*; do + dir="$ROOT_FOLDER"/electrum/$i/LC_MESSAGES + mkdir -p $dir + msgfmt --output-file=$dir/electrum.mo $i/electrum.po || true + done +) + ( cd "$ROOT_FOLDER"