Brian O'Connor | 5ef94b8 | 2016-11-12 21:56:49 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | onos-buck -V |
| 5 | |
| 6 | rm -f /tmp/publish.sh |
Yuta HIGUCHI | aa0cb50 | 2017-01-12 09:57:32 -0800 | [diff] [blame] | 7 | trap "rm -f /tmp/publish.sh /tmp/publish.sh.bak" EXIT |
| 8 | |
Brian O'Connor | 5ef94b8 | 2016-11-12 21:56:49 -0800 | [diff] [blame] | 9 | |
| 10 | onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh |
| 11 | |
Yuta HIGUCHI | ea8966d | 2016-12-03 15:04:54 -0800 | [diff] [blame] | 12 | sed -i.bak 's/^/onos-buck publish --to-local-repo /g' /tmp/publish.sh |
Brian O'Connor | 5ef94b8 | 2016-11-12 21:56:49 -0800 | [diff] [blame] | 13 | |
| 14 | bash /tmp/publish.sh |
| 15 | |
| 16 | rm /tmp/publish.sh |
Yuta HIGUCHI | ea8966d | 2016-12-03 15:04:54 -0800 | [diff] [blame] | 17 | rm /tmp/publish.sh.bak |
Brian O'Connor | 5ef94b8 | 2016-11-12 21:56:49 -0800 | [diff] [blame] | 18 | |
| 19 | onos-buck query "testsof(kind('onos_jar', deps('//tools/package:onos-package')))" >> /tmp/publish.sh |
Yuta HIGUCHI | ea8966d | 2016-12-03 15:04:54 -0800 | [diff] [blame] | 20 | sed -i.bak 's#^#onos-buck publish --to-local-repo #g' /tmp/publish.sh |
Brian O'Connor | 5ef94b8 | 2016-11-12 21:56:49 -0800 | [diff] [blame] | 21 | |
| 22 | bash /tmp/publish.sh |
Yuta HIGUCHI | ea8966d | 2016-12-03 15:04:54 -0800 | [diff] [blame] | 23 | rm /tmp/publish.sh.bak |