toybox/scripts/portability.sh
<<
>>
Prefs
   1# sourced to find alternate names for things
   2
   3source configure
   4
   5if [ -z "$(command -v "${CROSS_COMPILE}${CC}")" ]
   6then
   7  echo "No ${CROSS_COMPILE}${CC} found" >&2
   8  exit 1
   9fi
  10
  11if [ -z "$SED" ]
  12then
  13  [ ! -z "$(which gsed 2>/dev/null)" ] && SED=gsed || SED=sed
  14fi
  15