blob: 6e34d79dc2698736abd51c66f21587475f825265 [file] [log] [blame]
Brian O'Connor1fce5982016-10-25 00:16:16 -07001#!/bin/bash
2
3rm /tmp/publish.sh
4
5set -e
6set -x
7
8onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh
9onos-buck query "filter('.*-oar', deps('//tools/package:onos-package', 1))" >> /tmp/publish.sh
10echo "//tools/package:onos-features" >> /tmp/publish.sh
11
12sed -i '' 's/^/onos-buck publish --to-maven-central --include-source --include-javadoc --sign /g' /tmp/publish.sh
13
14cat /tmp/publish.sh
15
16bash /tmp/publish.sh
17
18rm /tmp/publish.sh
19
20onos-buck query "testsof(kind('onos_jar', deps('//tools/package:onos-package')))" >> /tmp/publish.sh
21sed -i '' 's#^#onos-buck publish --to-maven-central --sign #g' /tmp/publish.sh
22
23cat /tmp/publish.sh
24
25bash /tmp/publish.sh
26