-
Notifications
You must be signed in to change notification settings - Fork 133
/
merge.py
71 lines (68 loc) · 2.3 KB
/
merge.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
nodejs_in = [
"src/front.js",
"src/utilities.js",
"src/python_errors.js",
"src/ast_node_visitor.js",
"src/abstract_interpreter.js",
"src/pytifa.js",
"src/abstract_interpreter_definitions.js",
"src/treeMatching.js",
"src/sk_mod_instructor_extended.js",
"src/sk_mod_instructor.js",
"src/feedback.js",
"src/printer.js",
"src/engine.js",
]
js_in = ["src/front.js",
"src/utilities.js",
#"src/python_errors.js",
#"src/ast_node_visitor.js",
#"src/abstract_interpreter.js",
#"src/pytifa.js",
#"src/abstract_interpreter_definitions.js",
"src/python_to_blockly.js",
"src/treeMatching.js",
#"src/sk_mod_instructor_extended.js",
"src/sk_mod_instructor.js",
"src/imported.js",
"src/blockly_blocks/class.js",
"src/blockly_blocks/comment.js",
"src/blockly_blocks/comprehensions.js",
"src/blockly_blocks/dict.js",
"src/blockly_blocks/if.js",
"src/blockly_blocks/io.js",
"src/blockly_blocks/lists.js",
"src/blockly_blocks/sets.js",
"src/blockly_blocks/loops.js",
"src/blockly_blocks/parking.js",
"src/blockly_blocks/tuple.js",
"src/blockly_blocks/turtles.js",
"src/blockly_blocks/text.js",
"src/blockly_blocks/plots.js",
"src/dialog.js",
"src/storage.js",
"src/printer.js",
"src/interface.js",
"src/server.js",
"src/presentation.js",
"src/editor.js",
"src/corgis.js",
"src/history.js",
"src/english.js",
"src/feedback.js",
"src/toolbar.js",
"src/engine.js",
"src/main_v4.js"]
css_in = ['src/blockpy.css']
#js_out = 'kennel_dist/blockpy.js'
#css_out = 'kennel_dist/blockpy.css'
js_out = r'dist/blockpy.js'
nodejs_out = r'dist/blockpy_node.js'
css_out = r'dist/blockpy.css'
for files_in, file_out in [ (js_in, js_out), (css_in, css_out), (nodejs_in, nodejs_out) ]:
with open(file_out, 'w') as outfile:
for fname in files_in:
with open(fname) as infile:
for line in infile:
outfile.write(line)
outfile.write("\n")