-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Common checkout routine | ||
export PATH=$HOME/.pyenv/bin/pyenv:$PATH | ||
bs=${BASH_SOURCE[0]} | ||
mydir=$(dirname $bs) | ||
fulldir=$(readlink -f $mydir) | ||
|
||
function setup_version { | ||
local repo=$1 | ||
version=$2 | ||
echo Running setup $version on $repo ... | ||
(cd ../$repo && . ./admin-tools/setup-${version}.sh) | ||
return $? | ||
} | ||
|
||
function checkout_finish { | ||
branch=$1 | ||
cd $uncompyle6_owd | ||
git checkout $branch && pyenv local $PYTHON_VERSION && git pull | ||
rc=$? | ||
return $rc | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,20 @@ | ||
#!/bin/bash | ||
# Check out master branch and dependent development master branches | ||
PYTHON_VERSION=3.8.18 | ||
PYTHON_VERSION=3.8 | ||
|
||
bs=${BASH_SOURCE[0]} | ||
if [[ $0 == $bs ]] ; then | ||
echo "This script should be *sourced* rather than run directly through bash" | ||
exit 1 | ||
fi | ||
|
||
function checkout_version { | ||
local repo=$1 | ||
version=${2:-master} | ||
echo Checking out $version on $repo ... | ||
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \ | ||
git pull | ||
return $? | ||
} | ||
|
||
owd=$(pwd) | ||
|
||
export PATH=$HOME/.pyenv/bin/pyenv:$PATH | ||
|
||
mydir=$(dirname $bs) | ||
uncompyle6_owd=$(pwd) | ||
cd $mydir | ||
. ./checkout_common.sh | ||
fulldir=$(readlink -f $mydir) | ||
cd $fulldir/.. | ||
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis && | ||
checkout_version python-uncompyle6) | ||
|
||
git pull | ||
rm -v */.python-version || true | ||
cd $owd | ||
(cd $fulldir/.. && \ | ||
setup_version python-spark master && \ | ||
setup_version python-xdis python-3.6 ) | ||
checkout_finish master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters