mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 14:42:24 +00:00
Switch all.sh to bash
This will let us use bash features that are not found in some other sh implementations, such as DEBUG and ERR traps, "set -o pipefail", etc. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
07704c09ce
commit
62cf2e8e9f
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/env sh
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
# all.sh
|
# all.sh
|
||||||
#
|
#
|
||||||
@ -175,8 +175,8 @@ pre_initialize_variables () {
|
|||||||
|
|
||||||
# Gather the list of available components. These are the functions
|
# Gather the list of available components. These are the functions
|
||||||
# defined in this script whose name starts with "component_".
|
# defined in this script whose name starts with "component_".
|
||||||
# Parse the script with sed, because in sh there is no way to list
|
# Parse the script with sed. This way we get the functions in the order
|
||||||
# defined functions.
|
# they are defined.
|
||||||
ALL_COMPONENTS=$(sed -n 's/^ *component_\([0-9A-Z_a-z]*\) *().*/\1/p' <"$0")
|
ALL_COMPONENTS=$(sed -n 's/^ *component_\([0-9A-Z_a-z]*\) *().*/\1/p' <"$0")
|
||||||
|
|
||||||
# Exclude components that are not supported on this platform.
|
# Exclude components that are not supported on this platform.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user