OSDN Git Service

change install.sh
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 3 Apr 2011 12:54:58 +0000 (12:54 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 3 Apr 2011 12:54:58 +0000 (12:54 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@858 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/install.sh

index 7b9d2a8..79cac21 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
+
 mv Makefile.base Makefile