From 971ba41c1b7ce6a23c3461c9639c1c397fef4f24 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Tue, 28 Apr 2020 18:13:23 +0200 Subject: [PATCH] Command "tr '\n' ' '" not needed anymore in crystal depends[]. --- build/crystal.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/crystal.zsh b/build/crystal.zsh index 80a025d..15560fb 100644 --- a/build/crystal.zsh +++ b/build/crystal.zsh @@ -6,7 +6,12 @@ function crystal.prelude { } function crystal.build { - write "${target}: ${src[@]} ${depends[$target]} $(dirdep $target)" + write -n "${target}: ${src[@]}" + for i in ${depends[$target]}; do + v=$(echo ${i} | tr '\n' ' ') + write -n " ${v}" + done + write " $(dirdep $target)" write "\t@echo '${fg_bold[magenta]} CR > ${fg_bold[white]}$target${reset_color}'" write "\t${Q}crystal build ${crflags[$target]} \$(CRFLAGS) ${src[@]} -o '${target}'"