rename aux to scripts

This commit is contained in:
Sam El-Husseini
2017-07-13 20:49:04 +03:00
parent 69a5f72261
commit bfefb3eea9
3 changed files with 0 additions and 0 deletions

17
scripts/build.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
LEGO=$HOME/src/lego/lms2012
P="`pwd`"
F="$P"/pxt
set -e
cd $LEGO/lmssrc/adk/lmsasm
echo "Compiling..."
java -jar assembler.jar $F
cd "$P"
echo "Hex to paste:"
echo
echo "const rbfTemplate = \`"
node -p 'require("fs").readFileSync("pxt.rbf").toString("hex").replace(/5858585858(58)+/, "XX").replace(/.{1,80}/g, f => f + "\n").trim()'
echo "\`"
echo
rm -f pxt.rbf