build: mesar: Remove bashisms.
* scripts/mesar.in: Remove bashisms.
This commit is contained in:
parent
558d9cc60c
commit
4f4be8d6b7
|
@ -1,4 +1,4 @@
|
||||||
#! @BASH@
|
#! @SHELL@
|
||||||
|
|
||||||
# GNU Mes --- Maxwell Equations of Software
|
# GNU Mes --- Maxwell Equations of Software
|
||||||
# Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
# Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||||
|
@ -27,11 +27,10 @@ archive=$2
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
M1_archive=$(dirname "$archive")/$(basename "$archive" .a).s
|
M1_archive=$(dirname "$archive")/$(basename "$archive" .a).s
|
||||||
declare -a M1_objects
|
|
||||||
for o in "$@"; do
|
for o in "$@"; do
|
||||||
((i++))
|
s=$(dirname "$o")/$(basename "$o" .o).s
|
||||||
M1_objects[$i]=$(dirname "$o")/$(basename "$o" .o).s
|
M1_objects="$M1_objects $s"
|
||||||
done
|
done
|
||||||
mkdir -p $(dirname "$archive")
|
mkdir -p $(dirname "$archive")
|
||||||
cat "${M1_objects[@]}" > "$M1_archive"
|
cat $M1_objects > "$M1_archive"
|
||||||
cat "$@" > "$archive"
|
cat "$@" > "$archive"
|
||||||
|
|
Loading…
Reference in a new issue