#!/bin/bash mv -n *.dat *.inc *.h Inc/ [ -f ./build ] && rm ./build [ -f src/encrypt.c ] && sed -i src/encrypt.c -e "s/\(\s\)init(/\1_init(/g" mkdir -p /tmp/f7/Drivers ln -s /tmp/f7/Drivers Drivers make EXIT_CODE=$? mv build/f7.bin . mv build/f7.hex . mv build/f7.elf . rm ./Drivers rm -rf ./build/ exit EXIT_CODE