Skip to content

Commit

Permalink
busybox: restore mac/linux bash compat.
Browse files Browse the repository at this point in the history
previous commit was merged too fast.

Change-Id: I2573ce6074e988bae0cd2157fcdf1269f6b1ac99
  • Loading branch information
tpruvot committed Sep 2, 2014
1 parent 25b92aa commit ceebc17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/gen_build_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit ceebc17

Please sign in to comment.