#!/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 bluepill_f103c8 || exit mv .pio/build/bluepill_f103c8/firmware.* .