|
|
|
|
@ -18,18 +18,10 @@ info "Last commit: $VERSION"
|
|
|
|
|
# Load electrum-locale for this release |
|
|
|
|
git submodule update --init |
|
|
|
|
|
|
|
|
|
pushd ./contrib/deterministic-build/electrum-locale |
|
|
|
|
if ! which msgfmt > /dev/null 2>&1; then |
|
|
|
|
fail "Please install gettext" |
|
|
|
|
fi |
|
|
|
|
LOCALE="$WINEPREFIX/drive_c/electrum/electrum/locale/" |
|
|
|
|
# we want the binary to have only compiled (.mo) locale files; not source (.po) files |
|
|
|
|
rm -rf "$WINEPREFIX/drive_c/electrum/electrum/locale/" |
|
|
|
|
for i in ./locale/*; do |
|
|
|
|
dir="$WINEPREFIX/drive_c/electrum/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" |
|
|
|
|
|
|
|
|
|
find -exec touch -h -d '2000-11-11T11:11:11+00:00' {} + |
|
|
|
|
popd |
|
|
|
|
|