Skip to content

Commit 0e242f9

Browse files
committed
Admnistrivia
1 parent a5c6e03 commit 0e242f9

5 files changed

Lines changed: 42 additions & 14 deletions

File tree

admin-tools/merge-for-3.0.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/bin/bash
2-
owd=$(pwd)
2+
trepan_merge_30_owd=$(pwd)
33
cd $(dirname ${BASH_SOURCE[0]})
44
if . ./setup-python-3.0.sh; then
5-
git merge python-3.3-to-3.5
5+
git merge python-3.2-to-3.5
66
fi
7-
cd $owd
7+
cd $trepan_merge_30_owd

admin-tools/merge-for-3.2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/bin/bash
2-
owd=$(pwd)
2+
trepan_merge_32_owd=$(pwd)
33
cd $(dirname ${BASH_SOURCE[0]})
44
if . ./setup-python-3.2.sh; then
55
git merge python-3.6-to-3.10
66
fi
7-
cd $owd
7+
cd $trepan_merge_32_owd

admin-tools/merge-for-3.3.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

admin-tools/merge-for-3.6.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/bin/bash
2-
owd=$(pwd)
2+
trepan_merge_36_owd=$(pwd)
33
cd $(dirname ${BASH_SOURCE[0]})
44
if . ./setup-python-3.6.sh; then
55
git merge master
66
fi
7-
cd $owd
7+
cd $trepan_merge_36_owd

admin-tools/setup-python-3.0.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
PYTHON_VERSION=3.1
3+
4+
# FIXME put some of the below in a common routine
5+
function checkout_version {
6+
local repo=$1
7+
version=${2:-python-3.0-to-3.2}
8+
echo Checking out $version on $repo ...
9+
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \
10+
git pull
11+
return $?
12+
}
13+
14+
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
15+
python3_trepan_owd=$(pwd)
16+
bs=${BASH_SOURCE[0]}
17+
if [[ $0 == $bs ]] ; then
18+
echo "This script should be *sourced* rather than run directly through bash"
19+
exit 1
20+
fi
21+
22+
mydir=$(dirname $bs)
23+
fulldir=$(readlink -f $mydir)
24+
(cd $fulldir/.. && \
25+
checkout_version python-spark master && \
26+
checkout_version python-xdis && \
27+
checkout_version python-filecache python-3.1-to-3.2 && \
28+
checkout_version pycolumnize python-3.0-to-3.5 && \
29+
checkout_version python-uncompyle6 \
30+
)
31+
cd $owd
32+
rm -v */.python-version || true
33+
34+
git checkout python-3.0-to-3.1 && pyenv local $PYTHON_VERSION && git pull
35+
cd $python3_trepan_owd

0 commit comments

Comments
 (0)