tMerge pull request #3509 from bauerj/build-sh-old - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit b786249da70eeb827438f59804981f86de8f1556
 (DIR) parent 9966dc3b0c6cb7d0c50668ee513a110d5bab1c2b
 (HTM) Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 13 Dec 2017 07:29:19 +0100
       
       Merge pull request #3509 from bauerj/build-sh-old
       
       Allow to build older commits
       Diffstat:
         M contrib/build-wine/build-electrum-… |       8 ++++----
         M contrib/build-wine/build.sh         |       6 +++++-
       
       2 files changed, 9 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh
       t@@ -3,10 +3,6 @@
        NAME_ROOT=electrum
        PYTHON_VERSION=3.5.4
        
       -if [ "$#" -gt 0 ]; then
       -    BRANCH="$1"
       -fi
       -
        # These settings probably don't need any change
        export WINEPREFIX=/opt/wine64
        export PYTHONDONTWRITEBYTECODE=1
       t@@ -43,6 +39,10 @@ done
        popd
        
        pushd electrum
       +if [ ! -z "$1" ]; then
       +    git checkout $1
       +fi
       +
        VERSION=`git describe --tags`
        echo "Last commit: $VERSION"
        find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
 (DIR) diff --git a/contrib/build-wine/build.sh b/contrib/build-wine/build.sh
       t@@ -2,6 +2,10 @@
        # Lucky number
        export PYTHONHASHSEED=22
        
       +if [ ! -z "$1" ]; then
       +    to_build="$1"
       +fi
       +
        here=$(dirname "$0")
        
        echo "Clearing $here/build and $here/dist..."
       t@@ -19,5 +23,5 @@ find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
        popd
        ls -l /opt/wine64/drive_c/python*
        
       -$here/build-electrum-git.sh && \
       +$here/build-electrum-git.sh $to_build && \
        echo "Done."