7459.4.8
by Francis J. Lacoste
Automatically include the YUI dependencies. |
1 |
#!/usr/bin/python
|
8687.15.4
by Karl Fogel
Add the copyright header block to more files; tweak format in a few files. |
2 |
#
|
12126.7.2
by Deryck Hodge
Print yui deps directly, rather than trying to open |
3 |
# Copyright 2010 Canonical Ltd. This software is licensed under the
|
8687.15.4
by Karl Fogel
Add the copyright header block to more files; tweak format in a few files. |
4 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
7459.4.8
by Francis J. Lacoste
Automatically include the YUI dependencies. |
5 |
|
12126.7.2
by Deryck Hodge
Print yui deps directly, rather than trying to open |
6 |
"""Print the YUI modules we are using."""
|
7 |
||
12581.1.1
by Gavin Panella
Remove duplicated deps and make it possible to select different 'builds' of YUI. |
8 |
from sys import argv |
9 |
||
10 |
||
11 |
yui_root = 'lib/canonical/launchpad/icing/yui' |
|
12126.7.2
by Deryck Hodge
Print yui deps directly, rather than trying to open |
12 |
yui_deps = [ |
12581.1.1
by Gavin Panella
Remove duplicated deps and make it possible to select different 'builds' of YUI. |
13 |
'yui/yui', |
14 |
'oop/oop', |
|
15 |
'dom/dom', |
|
16 |
'dom/dom-style-ie', |
|
17 |
'event-custom/event-custom', |
|
18 |
'event/event', |
|
19 |
'pluginhost/pluginhost', |
|
20 |
'node/node', |
|
21 |
'event/event-base-ie', |
|
22 |
'node/align-plugin', |
|
23 |
'attribute/attribute', |
|
24 |
'base/base', |
|
25 |
'anim/anim', |
|
26 |
'async-queue/async-queue', |
|
27 |
'json/json', |
|
28 |
'plugin/plugin', |
|
29 |
'cache/cache', |
|
30 |
'classnamemanager/classnamemanager', |
|
31 |
'collection/collection', |
|
32 |
'dump/dump', |
|
33 |
'intl/intl', |
|
34 |
'substitute/substitute', |
|
35 |
'widget/widget', |
|
36 |
'widget/widget-base-ie', |
|
37 |
'console/lang/console.js', |
|
38 |
'console/console', |
|
39 |
'console/console-filters', |
|
40 |
'cookie/cookie', |
|
41 |
'dataschema/dataschema', |
|
42 |
'datatype/lang/datatype.js', |
|
43 |
'datatype/datatype', |
|
44 |
'querystring/querystring-stringify-simple', |
|
45 |
'queue-promote/queue-promote', |
|
46 |
'io/io', |
|
47 |
'datasource/datasource', |
|
48 |
'dd/dd', |
|
49 |
'dd/dd-gestures', |
|
50 |
'dd/dd-drop-plugin', |
|
51 |
'event/event-touch', |
|
52 |
'event-gestures/event-gestures', |
|
53 |
'dd/dd-plugin', |
|
54 |
'dom/selector-css3', |
|
55 |
'editor/editor', |
|
56 |
'event-simulate/event-simulate', |
|
57 |
'event-valuechange/event-valuechange', |
|
58 |
'escape/escape', |
|
59 |
'text/text-data-wordbreak', |
|
60 |
'text/text-wordbreak', |
|
61 |
'text/text-data-accentfold', |
|
62 |
'text/text-accentfold', |
|
63 |
'highlight/highlight', |
|
64 |
'history/history', |
|
65 |
'history/history-hash-ie', |
|
66 |
'history-deprecated/history-deprecated', |
|
67 |
'imageloader/imageloader', |
|
68 |
'jsonp/jsonp', |
|
69 |
'jsonp/jsonp-url', |
|
70 |
'loader/loader', |
|
71 |
'node/node-event-simulate', |
|
72 |
'transition/transition', |
|
73 |
'node-flick/node-flick', |
|
74 |
'node-focusmanager/node-focusmanager', |
|
75 |
'node-menunav/node-menunav', |
|
76 |
'widget/widget-position', |
|
77 |
'widget/widget-position-align', |
|
78 |
'widget/widget-position-constrain', |
|
79 |
'widget/widget-stack', |
|
80 |
'widget/widget-stdmod', |
|
81 |
'overlay/overlay', |
|
82 |
'profiler/profiler', |
|
83 |
'querystring/querystring', |
|
84 |
'querystring/querystring-parse-simple', |
|
85 |
'scrollview/scrollview-base', |
|
86 |
'scrollview/scrollview-base-ie', |
|
87 |
'scrollview/scrollview-scrollbars', |
|
88 |
'scrollview/scrollview', |
|
89 |
'scrollview/scrollview-paginator', |
|
90 |
'node/shim-plugin', |
|
91 |
'slider/slider', |
|
92 |
'sortable/sortable', |
|
93 |
'sortable/sortable-scroll', |
|
94 |
'stylesheet/stylesheet', |
|
95 |
'swfdetect/swfdetect', |
|
96 |
'swf/swf', |
|
97 |
'tabview/tabview-base', |
|
98 |
'widget/widget-child', |
|
99 |
'widget/widget-parent', |
|
100 |
'tabview/tabview', |
|
101 |
'tabview/tabview-plugin', |
|
102 |
'test/test', |
|
103 |
'uploader/uploader', |
|
104 |
'widget-anim/widget-anim', |
|
105 |
'widget/widget-locale', |
|
106 |
'yql/yql', |
|
12126.7.2
by Deryck Hodge
Print yui deps directly, rather than trying to open |
107 |
]
|
108 |
||
12581.1.1
by Gavin Panella
Remove duplicated deps and make it possible to select different 'builds' of YUI. |
109 |
|
110 |
if __name__ == '__main__': |
|
111 |
ext = "-%s.js" % argv[1] if len(argv) >= 2 else ".js" |
|
112 |
for yui_dep in yui_deps: |
|
113 |
# If the yui_dep already has a .js suffix, don't add ext to it.
|
|
114 |
if yui_dep.endswith(".js"): |
|
115 |
yui_dep_path = "%s/%s" % (yui_root, yui_dep) |
|
116 |
else: |
|
117 |
yui_dep_path = "%s/%s%s" % (yui_root, yui_dep, ext) |
|
118 |
print yui_dep_path |