1
by Lars Wirzenius
Import upstream version 1.11 |
1 |
#!/bin/sh
|
2 |
# test-env - run computer-janitor(-gtk) from source directory
|
|
3 |
# Copyright (C) 2008 Canonical, Ltd.
|
|
4 |
#
|
|
5 |
# This program is free software: you can redistribute it and/or modify
|
|
6 |
# it under the terms of the GNU General Public License as published by
|
|
7 |
# the Free Software Foundation, version 3 of the License.
|
|
8 |
#
|
|
9 |
# This program is distributed in the hope that it will be useful,
|
|
10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
# GNU General Public License for more details.
|
|
13 |
#
|
|
14 |
# You should have received a copy of the GNU General Public License
|
|
15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16 |
||
17 |
# This script makes it easy to run computer-janitor from the source
|
|
18 |
# directory. It sets the relevant environment variables and then
|
|
19 |
# invokes the command given to it via the command line.
|
|
20 |
#
|
|
21 |
# Usage: ./test-env ./computer-janitor-gtk
|
|
22 |
||
23 |
export COMPUTER_JANITOR_GLADE="$PWD/data/ComputerJanitor.glade" |
|
1.1.3
by Lars Wirzenius
Import upstream version 1.13.2 |
24 |
export COMPUTER_JANITOR_PLUGINS="$PWD/plugins" |
1
by Lars Wirzenius
Import upstream version 1.11 |
25 |
|
26 |
if [ "$#" != 0 ] |
|
27 |
then
|
|
28 |
cmd="$1" |
|
29 |
shift
|
|
30 |
"$cmd" --state=state.dat "$@" |
|
31 |
fi
|