cleanup: make dist/arch into a more maintable list

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent cbfd4f8cd0
commit a1a70f0b7e

@ -1660,59 +1660,40 @@ case "$UBOOT_TYPE" in
}
function check_distro {
IN_VALID_DISTRO=1
if test "-$DISTRO_TYPE-" = "-squeeze-"
then
DIST=squeeze
ARCH=armel
DISTARCH="${DIST}-${ARCH}"
unset IN_VALID_DISTRO
fi
if test "-$DISTRO_TYPE-" = "-oneiric-"
then
DIST=oneiric
case "${DISTRO_TYPE}" in
natty)
DIST=natty
ARCH=armel
DISTARCH="${DIST}-${ARCH}"
unset IN_VALID_DISTRO
fi
if test "-$DISTRO_TYPE-" = "-maverick-"
then
;;
maverick)
DIST=maverick
ARCH=armel
DISTARCH="${DIST}-${ARCH}"
unset IN_VALID_DISTRO
fi
if test "-$DISTRO_TYPE-" = "-natty-"
then
DIST=natty
;;
oneiric)
DIST=oneiric
ARCH=armel
DISTARCH="${DIST}-${ARCH}"
unset IN_VALID_DISTRO
fi
if test "-$DISTRO_TYPE-" = "-precise-armel-"
then
;;
precise-armel)
DIST=precise
ARCH=armel
DISTARCH="${DIST}-${ARCH}"
unset IN_VALID_DISTRO
fi
if test "-$DISTRO_TYPE-" = "-precise-armhf-"
then
;;
precise-armhf)
DIST=precise
ARCH=armhf
DISTARCH="${DIST}-${ARCH}"
unset IN_VALID_DISTRO
fi
if [ "$IN_VALID_DISTRO" ] ; then
;;
squeeze)
DIST=squeeze
ARCH=armel
;;
*)
IN_VALID_DISTRO=1
usage
fi
;;
esac
DISTARCH="${DIST}-${ARCH}"
}
function usage {

Loading…
Cancel
Save