Blame project/config/cfgdefs.sh

5f905a
for arg ; do
5f905a
	case "$arg" in
5f905a
		*)
5f905a
			error_msg ${arg#}: "unsupported config argument."
5f905a
			exit 2
5f905a
	esac
5f905a
done
5f905a
5f905a
cfgdefs_set_arch()
5f905a
{
5f905a
	if [ -n "$mb_arch" ]; then
5f905a
		return 0
5f905a
	fi
5f905a
5f905a
	case "$mb_cchost" in
5f905a
		*-*-*-* )
5f905a
			mb_arch=${mb_cchost%-*-*-*}
5f905a
			;;
5f905a
		*-*-* )
5f905a
			mb_arch=${mb_cchost%-*-*}
5f905a
			;;
5f905a
		*-* )
5f905a
			mb_arch=${mb_cchost%-*-*-*}
5f905a
			;;
5f905a
		* )
5f905a
			mb_arch='unknown'
5f905a
			;;
5f905a
	esac
5f905a
5f905a
	if [ "$mb_os" = 'midipix' ]; then
5f905a
		case "$mb_arch" in
5f905a
			x86_64 )
5f905a
				mb_arch='nt64'
5f905a
				;;
5f905a
			i[3-6]86 )
5f905a
				mb_arch='nt32'
5f905a
				;;
5f905a
		esac
5f905a
	fi
5f905a
}
5f905a
5f905a
# arch
5f905a
cfgdefs_set_arch
5f905a
5f905a
# all done
5f905a
return 0