| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | # This file is part of the OpenADK project. OpenADK is copyrighted# material, please see the LICENCE file in the top-level directory.## Scan host-tool prerequisites of certain packages before building.if test -z "$BASH_VERSION"; then	foo=`$BASH -c 'echo "$BASH_VERSION"'`else	foo=$BASH_VERSIONfiif test -z "$foo"; then	echo OpenADK requires GNU bash to be installed.	exit 1fitest -z "$BASH_VERSION$KSH_VERSION" && exec $BASH $0 "$@"[[ -n $BASH_VERSION ]] && shopt -s extglobtopdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))OStype=$(uname)out=0. $topdir/.configif [[ -n $ADK_PACKAGE_XBMC ]]; then	NEED_JAVA="$NEED_JAVA xbmc"fiif [[ -n $ADK_PACKAGE_XKEYBOARD_CONFIG ]]; then	NEED_XKBCOMP="$NEED_XKBCOMP xkeyboard-config"fiif [[ -n $ADK_PACKAGE_FONT_BITSTREAM_100DPI ]]; then	NEED_MKFONTDIR="$NEED_MKFONTDIR font-bitstream-100dpi"fiif [[ -n $ADK_PACKAGE_FONT_BITSTREAM_75DPI ]]; then	NEED_MKFONTDIR="$NEED_MKFONTDIR font-bitstream-75dpi"fiif [[ -n $ADK_PACKAGE_FONT_ADOBE_100DPI ]]; then	NEED_MKFONTDIR="$NEED_MKFONTDIR font-adobe-100dpi"fiif [[ -n $ADK_PACKAGE_FONT_ADOBE_75DPI ]]; then	NEED_MKFONTDIR="$NEED_MKFONTDIR font-adobe-75dpi"fiif [[ -n $NEED_MKFONTDIR ]]; then	if ! which mkfontdir >/dev/null 2>&1; then		echo >&2 You need mkfontdir to build $NEED_MKFONTDIR		out=1	fifiif [[ -n $NEED_XKBCOMP ]]; then	if ! which xkbcomp >/dev/null 2>&1; then		echo >&2 You need xkbcomp to build $NEED_XKBCOMP		out=1	fifiif [[ -n $NEED_JAVA ]]; then	if ! which java >/dev/null 2>&1; then		echo >&2 You need java to build $NEED_JAVA		out=1	fifiexit $out
 |