Allow to build older commits
This commit is contained in:
parent
9966dc3b0c
commit
bea62865d2
|
@ -3,10 +3,6 @@
|
||||||
NAME_ROOT=electrum
|
NAME_ROOT=electrum
|
||||||
PYTHON_VERSION=3.5.4
|
PYTHON_VERSION=3.5.4
|
||||||
|
|
||||||
if [ "$#" -gt 0 ]; then
|
|
||||||
BRANCH="$1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# These settings probably don't need any change
|
# These settings probably don't need any change
|
||||||
export WINEPREFIX=/opt/wine64
|
export WINEPREFIX=/opt/wine64
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
@ -43,6 +39,10 @@ done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd electrum
|
pushd electrum
|
||||||
|
if [ ! -z "$1" ]; then
|
||||||
|
git checkout $1
|
||||||
|
fi
|
||||||
|
|
||||||
VERSION=`git describe --tags`
|
VERSION=`git describe --tags`
|
||||||
echo "Last commit: $VERSION"
|
echo "Last commit: $VERSION"
|
||||||
find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
|
find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
# Lucky number
|
# Lucky number
|
||||||
export PYTHONHASHSEED=22
|
export PYTHONHASHSEED=22
|
||||||
|
|
||||||
|
if [ ! -z "$1" ]; then
|
||||||
|
to_build="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
|
|
||||||
echo "Clearing $here/build and $here/dist..."
|
echo "Clearing $here/build and $here/dist..."
|
||||||
|
@ -19,5 +23,5 @@ find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
|
||||||
popd
|
popd
|
||||||
ls -l /opt/wine64/drive_c/python*
|
ls -l /opt/wine64/drive_c/python*
|
||||||
|
|
||||||
$here/build-electrum-git.sh && \
|
$here/build-electrum-git.sh $to_build && \
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
Loading…
Reference in New Issue