Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-dev
>>>>> On Tue, 30 Aug 2011, Tomáš Chvátal wrote:
> CHECKREQS_EXPORTED_FUNCTIONS="pkg_setup"
> case "${EAPI:-0}" in
> 0|1|2|3) ;;
> 4) CHECKREQS_EXPORTED_FUNCTIONS="${CHECKREQS_EXPORTED_FUNCTIONS} pkg_pretend" ;;
> *) die "EAPI=${EAPI} is not supported" ;;
> esac
> EXPORT_FUNCTIONS ${CHECKREQS_EXPORTED_FUNCTIONS}
> unset CHECKREQS_EXPORTED_FUNCTIONS
No need for a global variable here, the following works as well and is
easier to read:
EXPORT_FUNCTIONS pkg_setup
case "${EAPI:-0}" in
0|1|2|3) ;;
4) EXPORT_FUNCTIONS pkg_pretend ;;
*) die "EAPI=${EAPI} is not supported" ;;
esac
Ulrich
|
|