File tree Expand file tree Collapse file tree
scripts/app_config/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,17 @@ TEMPLATE_FILES=(
5757if [ -f " ${ACTUAL_PUBSPEC} " ]; then
5858 rm " ${ACTUAL_PUBSPEC} "
5959fi
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
6272for 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} "
6878done
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments