We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d97d44 commit d4f7a91Copy full SHA for d4f7a91
tests/make_generated_mpy.sh
@@ -1,17 +1,16 @@
1
#!/bin/bash
2
3
+mkdir -p _build/generated
4
+mkdir -p _build/compiled
5
+
6
for thingy in `find _build/generated`; do
7
if [[ "$thingy" == *.py ]]; then
8
echo $thingy
- cp "$thingy" "_build/compiled/"
9
+ mpy-cross $thingy
10
+ MPYNAME=`echo $thingy | sed -e 's/\.py$/.mpy/'`
11
+ mv "$MPYNAME" "_build/compiled/"
12
fi
13
done
-cp libraries/common/keyboard_layout.py "_build/compiled/"
14
-cd _build/compiled
-for thingy in `find .`; do
- if [[ "$thingy" == *.py ]]; then
- mpy-cross "$thingy"
15
- rm "$thingy"
16
- fi
17
-done
+mpy-cross libraries/common/keyboard_layout.py
+mv libraries/common/keyboard_layout.mpy "_build/compiled/"
0 commit comments