blob: d180479587abfc579fb2cbeaec244d48b45d0ea6 [file] [log] [blame]
Brian O'Connord27d4372016-10-12 15:06:21 -07001#!/bin/bash
2
Ray Milkey48256232017-07-19 15:09:10 -07003BUCK_REF=${1:-"11-11-2016"}
4ONOS_REF=${2:-"master"}
5YANG_REF=${3:-"master"}
6DIR=$4
Brian O'Connord27d4372016-10-12 15:06:21 -07007
8set -x
9
Ray Milkey48256232017-07-19 15:09:10 -070010if [ -z "$4" ]; then
11 DIR=$(mktemp -d /tmp/buck-publish.XXXXX) || { echo "Failed to create temp file"; exit 1; }
12fi
Brian O'Connord27d4372016-10-12 15:06:21 -070013# change to tmpdir
Brian O'Connord27d4372016-10-12 15:06:21 -070014cd $DIR
15
16# checkout buck
17git clone -b $BUCK_REF https://github.com/bocon13/buck
18
19# checkout plugins
20git clone -b $ONOS_REF https://gerrit.onosproject.org/onos.git
21git clone -b $YANG_REF https://gerrit.onosproject.org/onos-yang-tools.git
22
23set +x
24
25echo
26echo "Buck publish area:"
27echo " cd $DIR"
Ray Milkey48256232017-07-19 15:09:10 -070028