blob: 8bebeaa1c4685d878761c46c2eb30c87f934315a [file] [log] [blame]
Brian O'Connor5ef94b82016-11-12 21:56:49 -08001#!/bin/bash
2
3set -e
4onos-buck -V
5
6rm -f /tmp/publish.sh
7
8onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh
9
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080010sed -i.bak 's/^/onos-buck publish --to-local-repo /g' /tmp/publish.sh
Brian O'Connor5ef94b82016-11-12 21:56:49 -080011
12bash /tmp/publish.sh
13
14rm /tmp/publish.sh
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080015rm /tmp/publish.sh.bak
Brian O'Connor5ef94b82016-11-12 21:56:49 -080016
17onos-buck query "testsof(kind('onos_jar', deps('//tools/package:onos-package')))" >> /tmp/publish.sh
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080018sed -i.bak 's#^#onos-buck publish --to-local-repo #g' /tmp/publish.sh
Brian O'Connor5ef94b82016-11-12 21:56:49 -080019
20bash /tmp/publish.sh
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080021rm /tmp/publish.sh.bak