forked from scratchfoundation/scratch-blocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cleanup.sh
executable file
·32 lines (26 loc) · 858 Bytes
/
cleanup.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
#!/bin/bash
# Script for cleaning up blockly-specific files when merging blockly into scratch-blocks
# Removes files and directories that scratch-blocks doesn't want.
# Rachel Fenichel ([email protected])
# On separate lines so that a failure to find one doesn't block removal of the other directories.
git rm -rf accessible
git rm -rf demos
git rm -rf tests/generators
git rm -rf appengine
git rm -rf blocks
git rm blockly_compressed.js
git rm blockly_uncompressed.js
git rm blocks_compressed.js
git rm -f tests/playground.html core/block_render_svg.js
# Turn on more powerful globbing
shopt -s extglob
# Having trouble with directories. Let's just go there.
cd msg/json
git rm -f !(en.json)
cd ../..
# Having trouble with directories. Let's just go there.
cd msg/js
git rm -f !(en.js)
cd ../..
# Turn powerful globbing off again
shopt -u extglob