You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
#!/bin/bash |
|
|
|
set -e |
|
|
|
CONTRIB="$(dirname "$(readlink -e "$0")")" |
|
ROOT_FOLDER="$CONTRIB"/.. |
|
PACKAGES="$ROOT_FOLDER"/packages/ |
|
LOCALE="$ROOT_FOLDER"/electrum/locale/ |
|
|
|
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 |
|
cp $i/electrum.po "$ROOT_FOLDER"/electrum/$i/electrum.po |
|
done |
|
) |
|
|
|
( |
|
cd "$ROOT_FOLDER" |
|
|
|
echo "'git clean -fd' would delete the following files: >>>" |
|
git clean -fd --dry-run |
|
echo "<<<" |
|
|
|
# we could build the kivy atlas potentially? |
|
#(cd electrum/gui/kivy/; make theming) || echo "building kivy atlas failed! skipping." |
|
|
|
python3 setup.py --quiet sdist --format=zip,gztar |
|
)
|
|
|