Skip to content

Commit 4d16f87

Browse files
committed
build-scripts: reintroduced post-compilation automata
1 parent 52837f6 commit 4d16f87

File tree

15 files changed

+19
-8
lines changed

15 files changed

+19
-8
lines changed

helper-scripts/project-impl/compile-electrostatic-app.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ compile "${COMMISSION_OUTPUT}" "${GCC_BIN}" "${GPP_BIN}" \
4343

4444
# post-compilation automata
4545
if [ "${POST_PROCESSING}" == "true" ]; then
46-
mkdir --parents "$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
47-
mkdir --parents "$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
48-
49-
mv --update "$(pwd)/cmake-build/${SYSTEM_DIR}/${BUILD_DIR}/${COMMISSION_EXE}.elf" \
50-
"$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
51-
52-
mv --update "$(pwd)/cmake-build/${SYSTEM_DIR}/${BUILD_DIR}/${COMMISSION_EXE}.elf" \
53-
"$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
46+
chmod +rwx ./helper-scripts/project-impl/post-compile/post-compile-electrostatic.sh
47+
./helper-scripts/project-impl/post-compile/post-compile-electrostatic.sh \
48+
"${SYSTEM_DIR}" "${BUILD_DIR}" "${COMMISSION_OUTPUT}"
5449
fi
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
source "./helper-scripts/project-impl/variables.sh"
4+
5+
SYSTEM_DIR="${1}"
6+
BUILD_DIR="${2}"
7+
COMMISSION_EXE="${3}"
8+
9+
mkdir --parents "$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
10+
mkdir --parents "$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
11+
12+
cp --update "$(pwd)/cmake-build/${SYSTEM_DIR}/${BUILD_DIR}/${COMMISSION_EXE}.elf" \
13+
"$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
14+
15+
cp --update "$(pwd)/cmake-build/${SYSTEM_DIR}/${BUILD_DIR}/${COMMISSION_EXE}.elf" \
16+
"$(pwd)/build/${SYSTEM_DIR}/${BUILD_DIR}"
-71.8 KB
Binary file not shown.
-34.1 KB
Binary file not shown.
-56.5 KB
Binary file not shown.
-28.6 KB
Binary file not shown.
-57.1 KB
Binary file not shown.
-30.2 KB
Binary file not shown.
-65.6 KB
Binary file not shown.
-29.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)