onos/tools/build/buck-publish-setup
Ray Milkey 482562353a Add a meta-script to build a new buck release
Change-Id: I68673f9afc52fdf033ba2c71ebacfd071404693a
2017-07-27 18:49:11 +00:00

29 lines
538 B
Bash
Executable File

#!/bin/bash
BUCK_REF=${1:-"11-11-2016"}
ONOS_REF=${2:-"master"}
YANG_REF=${3:-"master"}
DIR=$4
set -x
if [ -z "$4" ]; then
DIR=$(mktemp -d /tmp/buck-publish.XXXXX) || { echo "Failed to create temp file"; exit 1; }
fi
# change to tmpdir
cd $DIR
# checkout buck
git clone -b $BUCK_REF https://github.com/bocon13/buck
# checkout plugins
git clone -b $ONOS_REF https://gerrit.onosproject.org/onos.git
git clone -b $YANG_REF https://gerrit.onosproject.org/onos-yang-tools.git
set +x
echo
echo "Buck publish area:"
echo " cd $DIR"