Thomas Vachuska

Fixing onos buck package and lib gen script.

Change-Id: I4e30e253a84fb29bb9d174c6bcde6f7701b708cd
1 -#/bin/bash 1 +#!/bin/bash
2 # ----------------------------------------------------------------------------- 2 # -----------------------------------------------------------------------------
3 # Runs the custom version of Buck required by ONOS. 3 # Runs the custom version of Buck required by ONOS.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
......
1 #!/bin/bash 1 #!/bin/bash
2 2
3 -cd $(buck root 2>/dev/null) 3 +set -e
4 +cd $(onos-buck root 2>/dev/null)
5 +JAR=$(onos-buck build //tools/build/libgen:libgen --show-output 2>/dev/null | tail -1 | cut -d\ -f2)
4 6
5 -java -jar $(buck build //tools/build/libgen:libgen --show-output 2>/dev/null | tail -1 | cut -d' ' -f2) lib/deps.json lib/BUCK 7 +java -jar $JAR lib/deps.json lib/BUCK
......
...@@ -100,11 +100,10 @@ staged_apps = ['$(location %s)' % a for a in APPS] ...@@ -100,11 +100,10 @@ staged_apps = ['$(location %s)' % a for a in APPS]
100 sources = [ '$(location :onos-features)', ] 100 sources = [ '$(location :onos-features)', ]
101 sources += staged_repos + staged_apps 101 sources += staged_repos + staged_apps
102 102
103 -import time
104 genrule( 103 genrule(
105 name = 'onos-package', 104 name = 'onos-package',
106 out = 'onos.tar.gz', 105 out = 'onos.tar.gz',
107 - bash = 'echo %s >/dev/null; $(exe //buck-tools:onos-stage) $OUT $(location :onos-karaf) ' % time.time() + ' '.join(sources), 106 + bash = '$(exe //buck-tools:onos-stage) $OUT $(location :onos-karaf) ' + ' '.join(sources),
108 visibility = [ 'PUBLIC' ], 107 visibility = [ 'PUBLIC' ],
109 ) 108 )
110 109
......