~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to support/get-external-tarballs

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-17 13:54:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2130.
  • Revision ID: zygmunt.krynicki@canonical.com-20130517135425-cxcenxx5t0qrtbxd
checkbox-ng: add CheckBoxNG sub-project

CheckBoxNG (or lowercase as checkbox-ng, pypi:checkbox-ng) is a clean
implementation of CheckBox on top of PlainBox. It provides a new
executable, 'checkbox' that has some of the same commands that were
previously implemented in the plainbox package.

In particular CheckBoxNG comes with the 'checkbox sru' command
(the same one as in plainbox). Later on this sub-command will be removed
from plainbox.

CheckBoxNG depends on plainbox >= 0.3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# This file is part of Checkbox.
3
 
#
4
 
# Copyright 2013 Canonical Ltd.
5
 
# Written by:
6
 
#   Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
7
 
#
8
 
# Checkbox is free software: you can redistribute it and/or modify
9
 
# it under the terms of the GNU General Public License version 3,
10
 
# as published by the Free Software Foundation.
11
 
 
12
 
#
13
 
# Checkbox is distributed in the hope that it will be useful,
14
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
# GNU General Public License for more details.
17
 
#
18
 
# You should have received a copy of the GNU General Public License
19
 
# along with Checkbox.  If not, see <http://www.gnu.org/licenses/>.
20
 
 
21
 
# Helper script to download external tarballs
22
 
# ===========================================
23
 
 
24
 
# Ensure that CHECKBOX_TOP is not empty
25
 
if [ "$CHECKBOX_TOP" = "" ]; then
26
 
    echo "E: this script requires \$CHECKBOX_TOP"
27
 
    exit 100
28
 
fi
29
 
 
30
 
# Ensure that we have git 
31
 
if [ "$(which git)" = "" ]; then
32
 
    echo "E: you need to have git installed first"
33
 
    exit 101
34
 
fi
35
 
 
36
 
# Ensure that we have the external-tarballs repository
37
 
if [ ! -d "$CHECKBOX_TOP/support/external-tarballs" ]; then
38
 
    echo "I: cloning external-tarballs repository..."
39
 
    # Clone the external-tarballs repo
40
 
    git clone git://github.com/checkbox/external-tarballs \
41
 
        $CHECKBOX_TOP/support/external-tarballs
42
 
fi
43
 
 
44
 
cd $CHECKBOX_TOP/support/external-tarballs
45
 
 
46
 
# Fetch so that we may have the needed revision
47
 
if ! git fetch origin --quiet; then
48
 
    echo "W: cannot perform fetch, external-tarballs may be out of date"
49
 
fi
50
 
 
51
 
# Ensure that we are on the correct revision
52
 
if ! git checkout $(cat $CHECKBOX_TOP/support/external-tarballs-revision.txt); then
53
 
    echo "E: cannot switch to required commit!"
54
 
    exit 1
55
 
fi