Browse Source
make_tgz: build locale from deterministic submodule
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
16 additions and
5 deletions
-
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" |
|
|
|
|
|
|
|