Brian O'Connor

Some improvements to release tools

Change-Id: I651866d746a1e661fcefe0b28ef1e8e57cd502e9
......@@ -26,7 +26,8 @@ git fetch origin
git checkout $BRANCH
# Check existance of version
git tag -l | grep -q $ONOS_VERSION && { echo "ERROR: Version already exists"; exit -1; }
git tag -l | grep -q "$ONOS_VERSION\$" &&
{ echo "ERROR: Version already exists"; exit -1; }
export ONOS_ROOT=$DIR
. $ONOS_ROOT/tools/build/envDefaults
......
......@@ -39,7 +39,7 @@ function testJavaVersion {
trap "echo 'FAILED'" ERR
printf "Checking Java version... "
v=$(javac -version 2>&1 | grep 1.8.0_ | sed -e 's/.*1.8.0_\([0-9]*\).*/\1/g')
test "$v" -ge 74
test "$v" -ge 73
echo "OK"
}
......
......@@ -8,7 +8,7 @@ set -e
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
user=${1:-$USER}
user=${1:-${WIKI_USER:-$USER}}
remote=$user@wiki.onosproject.org
scp $ONOS_ROOT/docs/target/onos-apidocs-$ONOS_VERSION.tar.gz $remote:/tmp
......