aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host/pyenv-nxt-gdb-server
blob: 45797c64b43835aefa4da51cb1f8749b130b4039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# If using Apple's python, use the following to enable 32-bit python
# arch -i386 does not work reliably except with specific python versions
# python2.6 and python2.7 is known to work with 'arch -i386'
#
# Apple recommends the use of the following Environment Variable to control
# 32-bit vs. 64-bit python selection
# export VERSIONER_PYTHON_PREFER_32_BIT="yes"

DARWIN=`uname`
PYTHON=python
PYTHONVER=`$PYTHON --version`

if [ $DARWIN == "Darwin" ]; then
	echo "$PYTHONVER Running on Mac OSX Platform!"
	EXP="export VERSIONER_PYTHON_PREFER_32_BIT=yes"
	ARCH="arch -i386"
else
	echo "$PYTHONVER Running on Default Platform!"
	EXP=
	ARCH=
fi
# Debugging Info
# echo "dirname:" `dirname $0`
# echo "basename:" `basename $0`
export PYTHONPATH=~/svnrepo/nxt-python:~/gitrepo/pyfantom
#echo $EXP; $ARCH $PYTHON ~/gitrepo/armdebug/Host/nxt-gdb-server.py $*
$EXP; $ARCH $PYTHON ~/gitrepo/armdebug/Host/nxt-gdb-server.py $*