Skip to content

Commit 1d064db

Browse files
committed
Shell typo
1 parent d058bf7 commit 1d064db

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

admin-tools/install-all-newest.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/bash
2+
PACKAGE_NAME=trepan3k
3+
PACKAGE_MODULE=trepan
4+
trepan3k_owd=$(pwd)
5+
bs=${BASH_SOURCE[0]}
6+
mydir=$(dirname $bs)
7+
trepan3k_fulldir=$(readlink -f $mydir)
8+
cd $trepan3k_fulldir
9+
. ./checkout_common.sh
10+
11+
pyenv_file="pyenv-newest-versions"
12+
if ! source $pyenv_file ; then
13+
echo "Having trouble reading ${pyenv_file} version $(pwd)"
14+
exit 1
15+
fi
16+
17+
source ../${PACKAGE_MODULE}/version.py
18+
if [[ ! $__version__ ]] ; then
19+
echo "Something is wrong: __version__ should have been set."
20+
exit 1
21+
fi
22+
23+
cd ../dist/
24+
25+
install_check_command="trepan3k --help"
26+
install_file="trepan3k-${__version__}.tar.gz"
27+
for pyversion in $PYVERSIONS; do
28+
echo "*** Installing ${install_file} for Python ${pyversion} ***"
29+
pyenv local $pyversion
30+
pip install $install_file
31+
$install_check_command
32+
echo "----"
33+
done

0 commit comments

Comments
 (0)