author | Tanguy Pruvot <tanguy.pruvot@gmail.com> | 2014-09-02 05:00:11 (GMT) |
---|---|---|
committer | Tanguy Pruvot <tanguy.pruvot@gmail.com> | 2014-09-02 05:08:15 (GMT) |
commit | ceebc1793569343ea3145a93517a3a1bbe513025 (patch) | |
tree | d92daf685ce4a171197a2c9912c8fee487c0ce50 | |
parent | 25b92aa06ee1d76d778dbd8341129bcfdacfe97c (diff) | |
download | busybox-ceebc1793569343ea3145a93517a3a1bbe513025.zip busybox-ceebc1793569343ea3145a93517a3a1bbe513025.tar.gz busybox-ceebc1793569343ea3145a93517a3a1bbe513025.tar.bz2 |
busybox: restore mac/linux bash compat.
previous commit was merged too fast.
Change-Id: I2573ce6074e988bae0cd2157fcdf1269f6b1ac99
-rwxr-xr-x | scripts/gen_build_files.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index a77427f..d5f7b94 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh @@ -21,15 +21,17 @@ chk() { status "CHK" "$@"; } # features in this script, so this uses gsed and warns the user if # it does not exist. UNAME=$(uname -sm) -if [[ $UNAME == *Darwin* ]] || [[ $UNAME == *Macintosh* ]]; then +case "$UNAME" in +*Darwin*|*Macintosh*) SED_IMPL=$(which gsed) if [ $? != 0 ]; then echo "GNU sed is required for Darwin builds, please install and add 'gsed' to the path" exit 1; fi -else + ;; +*) SED_IMPL=sed -fi +esac generate() { |