The nature of the question here is broad enough truly to include Ubuntu. I was just picking around forums analyzing this and that and line 11 puzzled me. What I would like to know is, what exactly is it doing? Am I wrong to believe it's related to the touch and mkdir commands? Or is that file assumed already created?
1 #! /bin/sh
2
3 export EXTERNAL_STORAGE=/mnt/storage
4 PYTHONPATH=/mnt/storage/com.googlecode.pythonforandroid/extras/python
5 PYTHONPATH=${PYTHONPATH}:
/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload
6 export PYTHONPATH
7 export TEMP=/mnt/storage/com.googlecode.pythonforandroid/extras/python/tmp
8 export PYTHON_EGG_CACHE=$TEMP
9 export PYTHONHOME=/data/data/com.googlecode.pythonforandroid/files/python
10 export LD_LIBRARY_PATH=/data/data/com.googlecode.pythonforandroid/files/python/lib
11 /data/data/com.googlecode.pythonforandroid/files/python/bin/python "$@"
Your script is basically setting few environment variables (the
export
statements) before calling the "python for android" from this location:with the arguments
$@
passed to your shell script.See this page for the meaning of
$@
.