2
# Copyright 2014 Canonical Ltd.
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU Lesser General Public License as published by
6
# the Free Software Foundation; version 2.1.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU Lesser General Public License for more details.
13
# You should have received a copy of the GNU Lesser General Public License
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
# Author: Benjamin Zeller <zeller.benjamin@canonical.com>
22
SCRIPTPATH=$(dirname $0)
24
click chroot -a $ARCHITECTURE -f $FRAMEWORK -n $NAME exists
28
echo "The click target ${NAME}-${FRAMEWORK}-${ARCHITECTURE} exists already"
32
click chroot -a $ARCHITECTURE -f $FRAMEWORK -n $NAME create
36
echo "The click target was created successfully, installing required packages"
38
click chroot -a $ARCHITECTURE -f $FRAMEWORK -n $NAME maint apt-get install -y cmake
43
echo "There was an error creating the click target, cleaning up"
45
"${SCRIPTPATH}/click_destroy_target" ${ARCHITECTURE} ${FRAMEWORK} ${SERIES} ${NAME}