# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id$
# @ECLASS: portability.eclass
# @MAINTAINER:
# Screw it, do the output ourselves
while :; do
- [[ $max < $min && $step > 0 ]] && break
- [[ $min < $max && $step < 0 ]] && break
+ [[ $max -lt $min && $step -gt 0 ]] && break
+ [[ $min -lt $max && $step -gt 0 ]] && break
echo $min
: $(( min += step ))
done
# @USAGE:
# @RETURN: system version of make
# @DESCRIPTION:
-# Gets the name of the BSD-ish make command (pmake from NetBSD)
+# Gets the name of the BSD-ish make command (bmake from NetBSD)
#
# This will return make (provided by system packages) for BSD userlands,
# or bsdmake for Darwin userlands and pmake for the rest of userlands,
# Note: the bsdmake for Darwin userland is with compatibility with MacOSX
# default name.
get_bmake() {
- if [[ ${USERLAND} == *BSD ]]; then
+ if [[ ${CBUILD:-${CHOST}} == *bsd* ]]; then
echo make
- elif [[ ${USERLAND} == "Darwin" ]]; then
+ elif [[ ${CBUILD:-${CHOST}} == *darwin* ]]; then
echo bsdmake
else
- echo pmake
+ echo bmake
fi
}