releases/tools/list_stable_unreleased_changes.sh
Sean McGinnis 1aa9607e0a
Fix bashate errors
A few errors were causing the bashate job to fail. This corrects those
errors and also addresses the reported warnings for a clean build.

Change-Id: Ibc5c4f006d264e2f0a4c1b8186b5e313d2905561
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-07-30 14:56:05 -05:00

34 lines
987 B
Bash
Executable File

#!/bin/bash
#
# Convenience wrapper to show the unreleased changes in all projects
# claiming to have stable branches, so we don't have to remember the
# incantation.
if [[ $# -ne 1 ]]; then
echo "Usage: $(basename $0) <series>"
exit 1
fi
SERIES=${1}
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEDIR=$(dirname $TOOLSDIR)
source $TOOLSDIR/functions
# Set up the virtualenv where the list-deliverables command will be
# found. This is done outside of the invocation below because
# otherwise we get the tox output mixed up in the repo list output and
# try to do things like look at the history of "venv" and
# "installing".
if [[ -z "$VIRTUAL_ENV" ]]; then
if [[ ! -d $BASEDIR/.tox/venv ]]; then
(cd $BASEDIR && tox -e venv --notest)
fi
source $BASEDIR/.tox/venv/bin/activate
fi
repos="$(list-deliverables --repos --tag stable:follows-policy \
--series $SERIES)"
$TOOLSDIR/list_unreleased_changes.sh stable/$SERIES $repos