blob: 8bebeaa1c4685d878761c46c2eb30c87f934315a [file] [log] [blame]
#!/bin/bash
set -e
onos-buck -V
rm -f /tmp/publish.sh
onos-buck query "kind('onos_jar', deps('//tools/package:onos-package'))" >> /tmp/publish.sh
sed -i.bak 's/^/onos-buck publish --to-local-repo /g' /tmp/publish.sh
bash /tmp/publish.sh
rm /tmp/publish.sh
rm /tmp/publish.sh.bak
onos-buck query "testsof(kind('onos_jar', deps('//tools/package:onos-package')))" >> /tmp/publish.sh
sed -i.bak 's#^#onos-buck publish --to-local-repo #g' /tmp/publish.sh
bash /tmp/publish.sh
rm /tmp/publish.sh.bak