-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathcleanup-scratch.sh
88 lines (76 loc) · 2.77 KB
/
cleanup-scratch.sh
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# Script for cleaning up scratch specific files when merging scratch-blocks into pxt-blockly
# Removes files and directories that pxt-blockly doesn't want.
# On separate lines so that a failure to find one doesn't block removal of the other directories.
git checkout --ours blockly_compressed.js
git checkout --ours blockly_uncompressed.js
git checkout --ours blocks_compressed.js
git checkout --ours php_compressed.js
git checkout --ours dart_compressed.js
git checkout --ours lua_compressed.js
git checkout --ours javascript_compressed.js
git checkout --ours python_compressed.js
# Restore from pxt-blockly
git checkout --ours generators/
git checkout --ours generators/dart/
git checkout --ours generators/javascript/
git checkout --ours generators/lua/
git checkout --ours generators/php/
git checkout --ours generators/python/
git checkout --ours tests/generators/
git checkout --ours msg/
git checkout --ours package.json
git checkout --ours README.md
git checkout --ours .travis.yml
git checkout --ours webpack.config.js
git checkout --ours gh-pages/index.md
git checkout --ours core/block_render_svg.js
git checkout --ours tests/playground.html
git checkout --ours tests/multi_playground.html
git checkout --ours tests/workspace_svg/*
git checkout --ours tests/jsunit/workspace_test.js
git checkout --ours media/disconnect.mp3
git checkout --ours media/disconnect.ogg
git checkout --ours media/disconnect.wav
git checkout --ours media/quote0.png
git checkout --ours media/quote1.png
# Core files to always favour
# git checkout --ours core/toolbox.js
# git checkout --ours core/zoom_controls.js
# git checkout --ours core/trashcan.js
# Remove the field_variable_getter
rm -rf core/field_variable_getter.js
rm -rf tests/jsunit/field_variable_getter_test.js
# Scratch specific
git rm -rf blocks_common
git rm -rf blocks_horizontal
git rm -rf blocks_vertical
rm -rf shim/
rm -rf TRADEMARK
rm -rf .github/
# rm -rf blockly_compressed_horizontal.js
# rm -rf blockly_uncompressed_horizontal.js
# rm -rf blockly_compressed_vertical.js
# rm -rf blockly_uncompressed_vertical.js
# rm -rf blocks_compressed_horizontal.js
# rm -rf blocks_compressed_vertical.js
# rm -rf core/block_render_svg_horizontal.js
# rm -rf core/data_category.js
# rm -rf tests/horizontal_playground.html
# rm -rf tests/vertical_playground.html
# rm -rf tests/vertical_playground_compressed.html
rm -rf tests/jsunit/horizontal_tests.html
rm -rf tests/jsunit/vertical_tests.html
rm -rf tests/jsunit/procedure_test.js
# Remove media icons
rm -rf media/icons/
rm -rf media/turnleft_arrow.png
rm -rf media/turnright_arrow.png
rm -rf media/zoom-in.svg
rm -rf media/zoom-out.svg
rm -rf media/zoom-reset.svg
rm -rf media/eyedropper.svg
rm -rf media/green-flag.svg
rm -rf media/repeat.svg
rm -rf media/rotate-left.svg
rm -rf media/rotate-right.svg