root/trunk/launch.sh.in

Revision 796, 481 bytes (checked in by nicfit, 1 year ago)

Merged revisions 795 via svnmerge from
http://svn.nicfit.net/svn/mesk/branches/0.3

........

r795 | nicfit | 2007-07-01 14:29:03 -0600 (Sun, 01 Jul 2007) | 2 lines


Allow local customization in config.sh

........

  • Property svn:executable set to
Line 
1 #!/bin/sh
2
3 die()
4 {
5     echo "$1"
6     exit 1
7 }
8
9 ROOT=`dirname $0`
10 cd $ROOT > /dev/null
11
12 if test -e ./config.sh; then
13     # Source local config settings (e.g., PYTHONPATH)
14     . ./config.sh
15 fi
16
17 if test ! -e ./src/mesk/info.py; then
18     ./autogen.sh || die
19     make || die
20 fi
21
22 profile=${MESK_TEST_PROFILE:-testing_@PACKAGE_VERSION@}
23 if test "$profile" = "default"; then
24     profile=""
25 else
26     profile="--profile=${profile}"
27 fi
28
29 cd src > /dev/null
30 exec python main.py ${profile} "$@"
Note: See TracBrowser for help on using the browser.