From cd5110f6b8eb77519d704972276cfd5be6bff055 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:13 +0200 Subject: Adding live-helper 1.0~a17-1. --- functions/architecture.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 functions/architecture.sh (limited to 'functions/architecture.sh') diff --git a/functions/architecture.sh b/functions/architecture.sh new file mode 100755 index 000000000..fb0e910c1 --- /dev/null +++ b/functions/architecture.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# architecture.sh - handle architecture specific support +# Copyright (C) 2007 Otavio Salvador +# +# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +# This is free software, and you are welcome to redistribute it +# under certain conditions; see COPYING for details. + +set -e + +Check_architecture () +{ + ARCHITECTURES="${@}" + VALID="false" + + for ARCHITECTURE in ${ARCHITECTURES} + do + if [ "${ARCHITECTURE}" = "${LIVE_ARCHITECTURE}" ] + then + VALID="true" + break + fi + done + + if [ "${VALID}" = "false" ] + then + Echo_warning "skipping ${0}, foreign architecture." + exit 0 + fi +} -- cgit v1.2.3