Skip to content

Commit 0d76cf6

Browse files
committed
isar_build
1 parent bdcca3c commit 0d76cf6

2 files changed

Lines changed: 11 additions & 106 deletions

File tree

scripts/app_config/templates/configure_template_files.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@ TEMPLATE_FILES=(
5757
if [ -f "${ACTUAL_PUBSPEC}" ]; then
5858
rm "${ACTUAL_PUBSPEC}"
5959
fi
60-
cp "${T_PUBSPEC}" "${ACTUAL_PUBSPEC}"
60+
61+
if [ "$BUILD_ISAR_FROM_SOURCE" -eq 1 ]; then
62+
sed '/^# %%ENABLE_ISAR%%$/,/^# %%END_ENABLE_ISAR%%$/{
63+
/^# %%ENABLE_ISAR%%$/d
64+
/^# %%END_ENABLE_ISAR%%$/d
65+
s/^# / /g
66+
s/^# / /g
67+
}' "${T_PUBSPEC}" > "${ACTUAL_PUBSPEC}"
68+
else
69+
cp "${T_PUBSPEC}" "${ACTUAL_PUBSPEC}"
70+
fi
6171

6272
for TF in "${TEMPLATE_FILES[@]}"; do
6373
FILE="${APP_PROJECT_ROOT_DIR}/${TF}"
@@ -66,8 +76,3 @@ for TF in "${TEMPLATE_FILES[@]}"; do
6676
fi
6777
cp -rp "${TEMPLATES_DIR}/${TF}" "${FILE}"
6878
done
69-
70-
if [ "$BUILD_ISAR_FROM_SOURCE" -eq 1 ]; then
71-
source "${APP_PROJECT_ROOT_DIR}/scripts/app_config/templates/isar_build.sh"
72-
build_isar_source
73-
fi

scripts/app_config/templates/isar_build.sh

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)