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