Skip to content

Commit

Permalink
More administrivia -
Browse files Browse the repository at this point in the history
go over git branch checkout programs
  • Loading branch information
rocky committed Feb 12, 2024
1 parent 02ed25e commit e73cd74
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions admin-tools/check-2.4-2.7-versions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
function finish {
cd $owd
}
Expand All @@ -25,3 +26,4 @@ for version in $PYVERSIONS; do
fi
echo === $version ===
done
finish
6 changes: 5 additions & 1 deletion admin-tools/setup-python-2.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ function checkout_version {
return $?
}

function finish {
cd $owd
}

owd=$(pwd)
bs=${BASH_SOURCE[0]}
if [[ $0 == $bs ]] ; then
Expand All @@ -20,5 +24,5 @@ mydir=$(dirname $bs)
fulldir=$(readlink -f $mydir)
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis python-2.4-to-2.7 &&
checkout_version python-uncompyle6)
cd $owd
rm -v */.python-version || true
finish
5 changes: 3 additions & 2 deletions admin-tools/setup-python-3.0.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
PYTHON_VERSION=3.0.1
pyenv local $PYTHON_VERSION

Expand Down Expand Up @@ -29,7 +30,7 @@ fulldir=$(readlink -f $mydir)
cd $fulldir/..
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-xdis &&
checkout_version python-uncompyle6)
cd $owd
rm -v */.python-version || true

git checkout python-3.0-to-3.2 && git pull && pyenv local $PYTHON_VERSION
rm -v */.python-version || true
finish
6 changes: 4 additions & 2 deletions admin-tools/setup-python-3.3.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
PYTHON_VERSION=3.3.7
pyenv local $PYTHON_VERSION

Expand Down Expand Up @@ -28,8 +29,9 @@ mydir=$(dirname $bs)
fulldir=$(readlink -f $mydir)
cd $fulldir/..
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-xdis &&
checkout_version python-uncompyle6)
cd $owd
checkout_version python-uncompyle6)
rm -v */.python-version || true

git checkout python-3.3-to-3.5 && git pull && pyenv local $PYTHON_VERSION
rm -v */.python-version || true
finish

0 comments on commit e73cd74

Please sign in to comment.