mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 06:42:02 +03:00
202c1d4b0e
* Add double quotes for shell variables * Added exit for cd command. Prevent run commands after incorrect change directory.
13 lines
318 B
Bash
Executable File
13 lines
318 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x -e
|
|
|
|
SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
rm "$PROJECT_DIR"/bootloader/.obj/f*/flash || true
|
|
make -C "$PROJECT_DIR"/bootloader -j9 flash
|
|
|
|
rm "$PROJECT_DIR"/firmware/.obj/f*/flash || true
|
|
make -C "$PROJECT_DIR"/firmware -j9 flash
|