OSDN Git Service

make DVB driver usable.
[rec10/rec10-git.git] / rec10 / trunk / src / install.sh
index 7b9d2a8..1b117d9 100644 (file)
@@ -1,5 +1,17 @@
 #!/bin/bash
 SELF_DIR=`dirname $0`
 cd ${SELF_DIR}
-export LANG="ja_JP.UTF-8" && python2.6 ./install.py
+if type -P python2.6 > /dev/null
+then export LANG="ja_JP.UTF-8" && python2.6 ./install.py
+elif type -P python26 > /dev/null
+then export LANG="ja_JP.UTF-8" && python26 ./install.py
+elif type -P python2.7 > /dev/null
+then export LANG="ja_JP.UTF-8" && python2.7 ./install.py
+elif type -P python27 > /dev/null
+then export LANG="ja_JP.UTF-8" && python27 ./install.py
+elif type -P python2.5 > /dev/null
+then export LANG="ja_JP.UTF-8" && python2.5 ./install.py
+elif type -P python25 > /dev/null
+then export LANG="ja_JP.UTF-8" && python25 ./install.py
+fi
 mv Makefile.base Makefile