build: use build-locale.sh in all build scripts
This commit is contained in:
@@ -93,18 +93,10 @@ info "preparing electrum-locale."
|
||||
cd "$PROJECT_ROOT"
|
||||
git submodule update --init
|
||||
|
||||
pushd "$CONTRIB"/deterministic-build/electrum-locale
|
||||
if ! which msgfmt > /dev/null 2>&1; then
|
||||
fail "Please install gettext"
|
||||
fi
|
||||
LOCALE="$PROJECT_ROOT/electrum/locale/"
|
||||
# we want the binary to have only compiled (.mo) locale files; not source (.po) files
|
||||
rm -rf "$PROJECT_ROOT/electrum/locale/"
|
||||
for i in ./locale/*; do
|
||||
dir="$PROJECT_ROOT/electrum/$i/LC_MESSAGES"
|
||||
mkdir -p $dir
|
||||
msgfmt --output-file="$dir/electrum.mo" "$i/electrum.po" || true
|
||||
done
|
||||
popd
|
||||
rm -rf "$LOCALE"
|
||||
"$CONTRIB/build_locale.sh" "$CONTRIB/deterministic-build/electrum-locale/locale/" "$LOCALE"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ git submodule update --init
|
||||
rm -rf "$LOCALE"
|
||||
cp -r "$CONTRIB/deterministic-build/electrum-locale/locale/" "$LOCALE/"
|
||||
if ([ "$OMIT_UNCLEAN_FILES" != 1 ]); then
|
||||
"$CONTRIB/build_locale.sh" "$LOCALE"
|
||||
"$CONTRIB/build_locale.sh" "$LOCALE" "$LOCALE"
|
||||
fi
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user