diff options
Diffstat (limited to 'meta/classes/utility-tasks.bbclass')
-rw-r--r-- | meta/classes/utility-tasks.bbclass | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass index 507e0f1c94..1792f18e8c 100644 --- a/meta/classes/utility-tasks.bbclass +++ b/meta/classes/utility-tasks.bbclass | |||
@@ -1,13 +1,20 @@ | |||
1 | addtask listtasks | 1 | addtask listtasks |
2 | do_listtasks[nostamp] = "1" | 2 | do_listtasks[nostamp] = "1" |
3 | python do_listtasks() { | 3 | python do_listtasks() { |
4 | import sys | 4 | taskdescs = {} |
5 | # emit variables and shell functions | 5 | maxlen = 0 |
6 | #bb.data.emit_env(sys.__stdout__, d) | ||
7 | # emit the metadata which isnt valid shell | ||
8 | for e in d.keys(): | 6 | for e in d.keys(): |
9 | if d.getVarFlag(e, 'task'): | 7 | if d.getVarFlag(e, 'task'): |
10 | bb.plain("%s" % e) | 8 | maxlen = max(maxlen, len(e)) |
9 | if e.endswith('_setscene'): | ||
10 | desc = "%s (setscene version)" % (d.getVarFlag(e[:-9], 'doc') or '') | ||
11 | else: | ||
12 | desc = d.getVarFlag(e, 'doc') or '' | ||
13 | taskdescs[e] = desc | ||
14 | |||
15 | tasks = sorted(taskdescs.keys()) | ||
16 | for taskname in tasks: | ||
17 | bb.plain("%s %s" % (taskname.ljust(maxlen), taskdescs[taskname])) | ||
11 | } | 18 | } |
12 | 19 | ||
13 | CLEANFUNCS ?= "" | 20 | CLEANFUNCS ?= "" |