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