|
Revision 795, 467 bytes
(checked in by nicfit, 1 year ago)
|
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} |
|---|
| 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 -OO main.py ${profile} "$@" |
|---|