[Title] check executing ide first time or not.
authorTaeyoung Son <taeyoung2.son@samsung.com>
Wed, 17 Oct 2012 06:10:50 +0000 (15:10 +0900)
committerTaeyoung Son <taeyoung2.son@samsung.com>
Wed, 17 Oct 2012 06:10:50 +0000 (15:10 +0900)
[Desc.]
[Issue] http://172.21.17.25/redmine/issues/7038

Change-Id: I1b6ab7ce2aaaec83b2a7e4f5508a7a21f35c3cd2

org.tizen.base.feature/IDE.bat [changed mode: 0644->0755]
org.tizen.base.feature/rootfiles_for_linux/startup.sh
org.tizen.base.feature/rootfiles_for_mac/startup.sh
org.tizen.base.feature/rootfiles_for_windows_x86/IDE.exe [changed mode: 0644->0755]
org.tizen.base.feature/rootfiles_for_windows_x86_64/IDE.exe [changed mode: 0644->0755]
package/base-ide-product.install.linux
package/base-ide-product.install.windows
package/build.linux
package/pkginfo.manifest

old mode 100644 (file)
new mode 100755 (executable)
index 39748c7..838eb82
@@ -15,4 +15,9 @@ IF EXIST %tools_path%\UpdateAlram.jar (
 set Path=%sdk_path%\tools\mingw\bin;%sdk_path%\tools\mingw\msys\1.0\bin;%Path%
 
 cd /D %ide_path%
-eclipse.exe
+if exist %ide_path%\init (
+    set eclipse_options=-clean
+    del %ide_path%\init
+)
+
+eclipse.exe %eclipse_options%
index 0e75db6..2e07430 100755 (executable)
@@ -22,22 +22,34 @@ linux_main_version=`expr substr $linux_version 1 5`
 # only used ubuntu 10.04 or 10.10
 if [ ${linux_name} = "ubuntu" ]
 then
-       if [ ${linux_main_version} = "10.04" -o ${linux_main_version} = "10.10" ]
-       then
+    case ${linux_main_version} in
+        10.04|10.10)
                export LD_LIBRARY_PATH=$TIZEN_SDK_INSTALL_PATH/library/webkit:$LD_LIBRARY_PATH
-       fi
+            ;;
+    esac
 fi
 
-
 ## Execute IDE
+eclipse_options="-Dorg.eclipse.swt.browser.DefaultType=MOZILLA"
+
 cd ${IDE_PATH}
+
+if [ -e ${IDE_PATH}/init ]
+then
+    eclipse_options="-clean ${eclipse_options}"
+    rm ${IDE_PATH}/init
+fi
+
 if [ ${linux_name} = "ubuntu" ]
 then
-       if [ ${linux_main_version} = "11.04" -o ${linux_main_version} = "11.10" ]
-       then
-               GDK_NATIVE_WINDOWS=true UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ./eclipse -Dorg.eclipse.swt.browser.DefaultType=MOZILLA
-       else
-               GDK_NATIVE_WINDOWS=true ./eclipse -Dorg.eclipse.swt.browser.DefaultType=MOZILLA
-       fi
+    case ${linux_main_version} in
+        11.04|11.10|12.04|12.10)
+            GDK_NATIVE_WINDOWS=true UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ./eclipse ${eclipse_options}
+            ;;
+        *)
+            GDK_NATIVE_WINDOWS=true ./eclipse ${eclipse_options}
+    esac
 fi
+
 cd ${start_path}
+
index b5ed988..aa3c942 100755 (executable)
@@ -22,5 +22,12 @@ export LD_LIBRARY_PATH=$TIZEN_SDK_INSTALL_PATH/SDK/lib/webkit-lib:$LD_LIBRARY_PA
 
 ## Execute IDE
 cd ${IDE_PATH}
-GDK_NATIVE_WINDOWS=true ./eclipse.app/Contents/MacOS/eclipse -Dorg.eclipse.swt.browser.DefaultType=MOZILLA
+
+if [ -e ${IDE_PATH}/init ]
+then
+    eclipse_options="-clean ${eclipse_options}"
+    rm ${IDE_PATH}/init
+fi
+
+GDK_NATIVE_WINDOWS=true ./Eclipse.app/Contents/MacOS/eclipse ${eclipse_options}
 cd ${start_path}
old mode 100644 (file)
new mode 100755 (executable)
index dc6cf50..6e0b108
Binary files a/org.tizen.base.feature/rootfiles_for_windows_x86/IDE.exe and b/org.tizen.base.feature/rootfiles_for_windows_x86/IDE.exe differ
old mode 100644 (file)
new mode 100755 (executable)
index 3828917..ebb2da0
Binary files a/org.tizen.base.feature/rootfiles_for_windows_x86_64/IDE.exe and b/org.tizen.base.feature/rootfiles_for_windows_x86_64/IDE.exe differ
index 12c10d5..37b8288 100755 (executable)
@@ -23,4 +23,6 @@ then
     ${MAKESHORTCUT_PATH} -f "${desktopfile}" -e "${exepath}" -i "${ide_icons_path}/${iconfile}" -n "${name}" -c "${comment}"
 fi
 
+touch ${TIZEN_SDK_INSTALL_PATH}/${ide_path}/init
+
 exit 0
index 443ec47..b0b4cb9 100644 (file)
@@ -10,9 +10,9 @@ set font_path=%program_path%\resources\fonts
 
 echo Setting shortcut...
 wscript.exe "%MAKESHORTCUT_PATH%" /shortcut:"%shortcut_name%" /target:"%execute_path%" /icon:"%icon_path%\%icon_file%"
-
 echo Make shortcut success.
-:: Install Tizen font
-:: copy %font_path%\%font_file% %HOMEDRIVE%\Windows\Fonts
+
+echo Create init file...
+fsutil file createnew %program_path%\init 1
 
 exit 0
index d6da62c..3c327cf 100644 (file)
@@ -297,7 +297,7 @@ packaging_plugins()
 clean()
 {
     echo "=========================================CLEAN============================================"
-    rm -rf ${SRCDIR}/*.zip
+    rm -rf ${SRCDIR}/base-ide-product_*_${TARGET_OS}.zip
     rm -rf ${SRCDIR}/*.tar.gz
     rm -rf ${build_path}
 }
index ef7d05a..8f1b968 100644 (file)
@@ -1,4 +1,4 @@
-Version:1.0.32
+Version:1.1.0
 Source:product
 Maintainer:kangho kim <kh5325.kim@samsung.com>, yoonki park <yoonki.park@samsung.com>, hyunsik non <hyunsik.noh@samsung.com>, taeyoung son <taeyoung2.son@samsung.com>, gune Kim <gune.kim@samsung.com>, ho namkoong <ho.namkoong@samsung.com>, hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song<jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, Woongsik Choi <woongsik76.choi@samsung.com>, Hyukmin Kwon <hyukmin0530.kwon@samsung.com>, Wooyoung Cho <wooyoung1.cho@samsung.com>, Jaeheung Kim <jaeheung.kim@samsung.com>