From: Taeyoung Son Date: Fri, 7 Jun 2013 01:55:02 +0000 (+0900) Subject: [Title] Modify startup.sh for supporting other linux OS X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad838252aabd338687566eaa55999765ee5771b5;p=sdk%2Fide%2Fproduct.git [Title] Modify startup.sh for supporting other linux OS [Desc.] [Issue] Change-Id: Ib2242e122635a4ec46d9b74f91bb1f93206bd3cc --- diff --git a/org.tizen.base.feature/rootfiles_for_linux/startup.sh b/org.tizen.base.feature/rootfiles_for_linux/startup.sh index 7796569..77a0fd8 100755 --- a/org.tizen.base.feature/rootfiles_for_linux/startup.sh +++ b/org.tizen.base.feature/rootfiles_for_linux/startup.sh @@ -24,11 +24,14 @@ then eclipse_options="-clean ${eclipse_options}" fi -linux_name=`cat /etc/issue | awk '{print $1}' | tr [A-Z] [a-z]` -linux_version=`cat /etc/issue | awk '{print $2}'` -linux_main_version=`expr substr $linux_version 1 5` +if [ -e /etc/issue ] +then + linux_name=`cat /etc/issue | awk '{print $1}' | tr [A-Z] [a-z]` + linux_version=`cat /etc/issue | awk '{print $2}'` + linux_main_version=`expr substr $linux_version 1 5` +fi -if [ ${linux_name} = "ubuntu" ] +if [ "${linux_name}" = "ubuntu" ] then case ${linux_main_version} in 11.04|11.10|12.04|12.10) @@ -37,7 +40,8 @@ then *) GDK_NATIVE_WINDOWS=true ./eclipse ${eclipse_options} esac +else + GDK_NATIVE_WINDOWS=true ./eclipse ${eclipse_options} fi cd ${start_path} -