From ab0a816bb59c562962b9cc5fcb0c36ab927c872d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 12 Sep 2017 14:59:32 -0700 Subject: [PATCH] Make the build script a little easier to understand --- vagrant/scripts/build.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vagrant/scripts/build.sh b/vagrant/scripts/build.sh index e77105c0..ea9ae9ff 100755 --- a/vagrant/scripts/build.sh +++ b/vagrant/scripts/build.sh @@ -14,11 +14,15 @@ if [ "$NAME" == "" ]; then exit 1 fi -PYVER=$2 -if [ "$PYVER" == "" ]; then - PYVER=all +# This is the name of the virtual environment to be built. They should all be +# named like Py27, Py35, etc. If "all" is given then all the environments in +# ~/venvs will be used for a build. +PYENV=$2 +if [ "$PYENV" == "" ]; then + PYENV=all fi +# Either "gtk2", "gtk3" or "all" PORT=$3 if [ "$PORT" == "" ]; then PORT=all @@ -84,7 +88,7 @@ function do_build { # Do a build for each Python virtual environment in ~/venvs for VENV in ~/venvs/*; do - if [ $PYVER = all -o $PYVER = $(basename $VENV) ]; then + if [ $PYENV = all -o $PYENV = $(basename $VENV) ]; then # build a package for GTK2? if [ $PORT = all -o $PORT = gtk2 ]; then do_build $VENV gtk2 --gtk2