commit: 611dbe55002c75da3c233a97bd6c414e6b61d661
parent acb8178b79fc075858d52fc1ab45f428e685b479
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 17 Jul 2023 10:30:29 +0200
configure: Replace ${var//./.} with sed
POSIX Shell doesn't have ${var//./.}
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
@@ -326,8 +326,9 @@ EOF
all="badwolf"
for obj in ${OBJS}; do
- echo -n "build ${obj}: cc_obj ${obj//.o/.c} | "
- grep '#include "' "${obj//.o/.c}" | sed -e 's;#include ";;' -e 's;";;' | tr '\n' ' '
+ obj_c="$(echo "$obj" | sed -e 's;\.o;.c;g')"
+ echo -n "build ${obj}: cc_obj ${obj_c} | "
+ grep '#include "' "${obj_c}" | sed -e 's;#include ";;' -e 's;";;' | tr '\n' ' '
echo
done >>config.ninja