#!/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(/\1_init(/g"
platformio run -e esp32dev || exit mv .pio/build/esp32dev/*{.bin,.elf} .