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

« back to all changes in this revision

Viewing changes to checkbox-old/bin/checkbox-qt

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -e
 
4
 
 
5
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
 
6
export CHECKBOX_DATA=${CHECKBOX_DATA:-.}
 
7
export CHECKBOX_SHARE=${CHECKBOX_SHARE:-.}
 
8
export CHECKBOX_FRONTEND=${CHECKBOX_FRONTEND:-$CHECKBOX_SHARE/qt/frontend}
 
9
export CHECKBOX_OPTIONS=${CHECKBOX_OPTIONS:---whitelist-file=$CHECKBOX_SHARE/data/whitelists/default.whitelist}
 
10
export PYTHONPATH=$PYTHONPATH:$CHECKBOX_SHARE
 
11
 
 
12
if [ $CHECKBOX_DATA != '.' ]
 
13
then
 
14
    old_data=$HOME/.checkbox
 
15
    if [ -d $old_data ] && [ ! -d $CHECKBOX_DATA ]
 
16
    then
 
17
        mv -f $old_data $CHECKBOX_DATA
 
18
    fi
 
19
fi
 
20
 
 
21
if [ -e $CHECKBOX_FRONTEND ]
 
22
then
 
23
    (cd $CHECKBOX_FRONTEND; qmake; make; ./checkbox-qt-service &)
 
24
fi
 
25
 
 
26
python3 $CHECKBOX_SHARE/run "$@" $CHECKBOX_SHARE/configs/$(basename $0).ini