commit 7266ecc2b80a56ab52b26dfecd83dfea5124d105 parent f846d1d59aa0a6eac4c3f21a966524e759dfade9 Author: ghost43 <somber.night@protonmail.com> Date: Fri, 1 Feb 2019 21:20:45 +0100 contrib/make_tgz: small improvements. (#5040) Diffstat:
M | contrib/make_tgz | | | 34 | +++++++++++++++++++++++++++------- |
1 file changed, 27 insertions(+), 7 deletions(-)
diff --git a/contrib/make_tgz b/contrib/make_tgz @@ -1,11 +1,31 @@ #!/bin/bash -contrib=$(dirname "$0") -packages="$contrib"/../packages/ +set -e -if [ ! -d "$packages" ]; then - echo "Run make_packages first!" - exit 1 -fi +CONTRIB="$(dirname "$(readlink -e "$0")")" +ROOT_FOLDER="$CONTRIB"/.. +PACKAGES="$ROOT_FOLDER"/packages/ +LOCALE="$ROOT_FOLDER"/electrum/locale/ -python3 setup.py sdist --format=zip,gztar +( + cd "$ROOT_FOLDER" + + if [ ! -d "$LOCALE" ]; then + echo "Run make_locale first!" + exit 1 + fi + + if [ ! -d "$PACKAGES" ]; then + echo "Run make_packages first!" + exit 1 + fi + + echo "'git clean -fx' would delete the following files: >>>" + git clean -fx --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 +)