More administrivia

This commit is contained in:
rocky
2024-02-12 08:46:16 -05:00
parent e73cd749e7
commit 05ebaf9ec1
6 changed files with 65 additions and 37 deletions

View File

@@ -1,6 +1,14 @@
#!/bin/bash
# Check out master branch and dependent development master branches
set -e
PYTHON_VERSION=3.8.18
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}
@@ -14,18 +22,17 @@ function checkout_version {
function finish {
cd $owd
}
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
trap finish EXIT
export PATH=$HOME/.pyenv/bin/pyenv:$PATHb
mydir=$(dirname $bs)
fulldir=$(readlink -f $mydir)
cd $fulldir/..
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis &&
checkout_version python-uncompyle6)
cd $owd
rm -v */.python-version >/dev/null 2>&1 || true
checkout_version python-uncompyle6)
git pull
rm -v */.python-version || true
finish