Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | python_binary( |
Brian O'Connor | 1f16598 | 2016-04-06 21:36:09 -0700 | [diff] [blame] | 2 | name = 'onos-app-writer', |
| 3 | main = 'onos_app.py', |
| 4 | deps = [], |
| 5 | visibility = ['PUBLIC'], |
| 6 | ) |
| 7 | |
| 8 | python_binary( |
| 9 | name = 'onos-app-oar', |
| 10 | main = 'onos_oar.py', |
| 11 | deps = [], |
| 12 | visibility = ['PUBLIC'], |
| 13 | ) |
| 14 | |
Brian O'Connor | 0167bd4 | 2016-04-29 17:09:10 -0700 | [diff] [blame] | 15 | python_binary( |
| 16 | name = 'onos-stage', |
| 17 | main = 'onos_stage.py', |
| 18 | deps = [], |
| 19 | visibility = ['PUBLIC'], |
| 20 | ) |
| 21 | |
| 22 | python_binary( |
| 23 | name = 'onos-feature', |
| 24 | main = 'onos_feature.py', |
| 25 | deps = [], |
| 26 | visibility = ['PUBLIC'], |
| 27 | ) |
Brian O'Connor | 1f16598 | 2016-04-06 21:36:09 -0700 | [diff] [blame] | 28 | |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 29 | def shquote(s): |
| 30 | return s.replace("'", "'\\''") |
| 31 | |
| 32 | def os_path(): |
| 33 | from os import environ |
| 34 | return environ.get('PATH') |
| 35 | |
| 36 | genrule( |
| 37 | name = 'buck', |
| 38 | cmd = 'echo buck=`which buck`>$OUT;' + |
| 39 | ("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())), |
| 40 | out = 'buck.properties', |
| 41 | visibility = ['PUBLIC'], |
| 42 | ) |
| 43 | |