compile
298 Bytes
#!/bin/bash
# Rename all *.s to *.S
for f in *.s; do
mv -- "$f" "${f%.s}.S"
done
mv -n *.c *.S src/
mv -n *.dat *.inc *.h include/
sed -i src/encrypt.c -e "s/\(\s\)init(/\1encrypt_init(/g"
platformio run -e sipeed-longan-nano-lite || exit
mv .pio/build/sipeed-longan-nano-lite/firmware.* .