You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
More administrivia
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
#!/bin/bash
|
||||
# Check out python-3.0-to-3.2 and dependent development branches.
|
||||
|
||||
set -e
|
||||
PYTHON_VERSION=3.0.1
|
||||
pyenv local $PYTHON_VERSION
|
||||
|
||||
bs=${BASH_SOURCE[0]}
|
||||
if [[ $0 == $bs ]] ; then
|
||||
echo "This script should be *sourced* rather than run directly through bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# FIXME put some of the below in a common routine
|
||||
function checkout_version {
|
||||
@@ -16,14 +23,10 @@ function checkout_version {
|
||||
function finish {
|
||||
cd $owd
|
||||
}
|
||||
owd=$(pwd)
|
||||
trap finish EXIT
|
||||
|
||||
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
|
||||
owd=$(pwd)
|
||||
bs=${BASH_SOURCE[0]}
|
||||
if [[ $0 == $bs ]] ; then
|
||||
echo "This script should be *sourced* rather than run directly through bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mydir=$(dirname $bs)
|
||||
fulldir=$(readlink -f $mydir)
|
||||
@@ -31,6 +34,6 @@ cd $fulldir/..
|
||||
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-xdis &&
|
||||
checkout_version python-uncompyle6)
|
||||
|
||||
git checkout python-3.0-to-3.2 && git pull && pyenv local $PYTHON_VERSION
|
||||
git pull
|
||||
rm -v */.python-version || true
|
||||
finish
|
||||
|
Reference in New Issue
Block a user