blob: d47f72df24c6a222f025b885cfd1cfd680eb6f47 [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
Yuta HIGUCHIaa0cb502017-01-12 09:57:32 -08007trap "rm -f /tmp/publish.sh /tmp/publish.sh.bak" EXIT
8
Brian O'Connor5ef94b82016-11-12 21:56:49 -08009
10onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh
11
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080012sed -i.bak 's/^/onos-buck publish --to-local-repo /g' /tmp/publish.sh
Brian O'Connor5ef94b82016-11-12 21:56:49 -080013
14bash /tmp/publish.sh
15
16rm /tmp/publish.sh
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080017rm /tmp/publish.sh.bak
Brian O'Connor5ef94b82016-11-12 21:56:49 -080018
19onos-buck query "testsof(kind('onos_jar', deps('//tools/package:onos-package')))" >> /tmp/publish.sh
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080020sed -i.bak 's#^#onos-buck publish --to-local-repo #g' /tmp/publish.sh
Brian O'Connor5ef94b82016-11-12 21:56:49 -080021
22bash /tmp/publish.sh
Yuta HIGUCHIea8966d2016-12-03 15:04:54 -080023rm /tmp/publish.sh.bak