From 4f4be8d6b7bc06df5cc9d68f0caee097a6eab3d1 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 16 Sep 2019 22:46:39 +0200 Subject: [PATCH] build: mesar: Remove bashisms. * scripts/mesar.in: Remove bashisms. --- scripts/mesar.in | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/mesar.in b/scripts/mesar.in index 979db503..883f7d34 100644 --- a/scripts/mesar.in +++ b/scripts/mesar.in @@ -1,4 +1,4 @@ -#! @BASH@ +#! @SHELL@ # GNU Mes --- Maxwell Equations of Software # Copyright © 2019 Jan (janneke) Nieuwenhuizen @@ -27,11 +27,10 @@ archive=$2 shift shift M1_archive=$(dirname "$archive")/$(basename "$archive" .a).s -declare -a M1_objects for o in "$@"; do - ((i++)) - M1_objects[$i]=$(dirname "$o")/$(basename "$o" .o).s + s=$(dirname "$o")/$(basename "$o" .o).s + M1_objects="$M1_objects $s" done mkdir -p $(dirname "$archive") -cat "${M1_objects[@]}" > "$M1_archive" +cat $M1_objects > "$M1_archive" cat "$@" > "$archive"