Skip to content

Commit

Permalink
Bugfix: \n does not represent a newline character on Mac
Browse files Browse the repository at this point in the history
So, use a temporary @n@ and replace it by a newline at the end
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 28, 2018
1 parent 726bed7 commit c7f168c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure
Expand Up @@ -2779,7 +2779,7 @@ enable_defines() {

for a in ${ADDONS}; do
local addon_name="$(basename ${a})"
DEFINE_ENABLE_ADDONS="${DEFINE_ENABLE_ADDONS}\n#define ENABLE_${addon_name} 1"
DEFINE_ENABLE_ADDONS="${DEFINE_ENABLE_ADDONS}@n@#define ENABLE_${addon_name} 1"
done
}

Expand Down Expand Up @@ -3220,6 +3220,8 @@ sed -e "s|@FLEXIBLESUSY_VERSION@|$FLEXIBLESUSY_VERSION|" \
-e "s|@DEFINE_ENABLE_LATTICE_SOLVER@|$DEFINE_ENABLE_LATTICE_SOLVER|" \
-e "s|@DEFINE_ENABLE_SEMI_ANALYTIC_SOLVER@|$DEFINE_ENABLE_SEMI_ANALYTIC_SOLVER|" \
-e "s|@DEFINE_ENABLE_ADDONS@|$DEFINE_ENABLE_ADDONS|" \
-e 's|@n@|\
|g' \
< $CONFIGHDR_TMPL > $CONFIGHDR

sed -e "s|@FLEXIBLESUSY_VERSION@|$FLEXIBLESUSY_VERSION|" \
Expand Down

0 comments on commit c7f168c

Please sign in to comment.