[Title] Modify dibs script files.
authorKitae Kim <kt920.kim@samsung.com>
Thu, 15 Mar 2012 07:41:32 +0000 (16:41 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Thu, 15 Mar 2012 07:41:32 +0000 (16:41 +0900)
[Type] bug fix
[Module] emulator-manager / dibs
[Priority] Major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

emulator-manager.sh [new file with mode: 0755]
package/build.linux
package/build.windows [new file with mode: 0755]
package/emulator.install.windows
package/emulator.remove.windows
package/pkginfo.manifest

diff --git a/emulator-manager.sh b/emulator-manager.sh
new file mode 100755 (executable)
index 0000000..27ab933
--- /dev/null
@@ -0,0 +1 @@
+java -jar emulator-manager.jar
index e15fce6..b4c42d6 100755 (executable)
@@ -4,6 +4,7 @@ clean()
 {
        echo "$SRCDIR"
 #      ant -buildfile build.xml clean
+       rm $SRCDIR/*.jar
        rm -rf $SRCDIR/*.zip
        rm -rf $SRCDIR/*.tar.gz
 }
@@ -11,21 +12,17 @@ clean()
 # build
 build() 
 {
-       ant -buildfile build.xml
+       ant -buildfile build.xml linux-jar
 }
 
 # install
 install() 
 {
-    if [ "$BUILD_TARGET_OS" = "linux" ]
-    then
-               BIN_DIR=$SRCDIR/package/emulator-manager.package.linux/data/Emulator
-    else
-               BIN_DIR=$SRCDIR/package/emulator-manager.package.windows/data/Emulator
-    fi
+       BIN_DIR=$SRCDIR/package/emulator-manager.package.linux/data/Emulator
        mkdir -p $BIN_DIR/bin
 
        cp emulator-manager.jar $BIN_DIR/bin
+       cp emulator-manager.sh $BIN_DIR/bin/emulator-manager
        cp -r lib $BIN_DIR/bin/
 }
 
diff --git a/package/build.windows b/package/build.windows
new file mode 100755 (executable)
index 0000000..fd0c1a9
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/sh -xe
+# clean
+clean()
+{
+       echo "$SRCDIR"
+#      ant -buildfile build.xml clean
+       rm $SRCDIR/*.jar
+       rm -rf $SRCDIR/*.zip
+       rm -rf $SRCDIR/*.tar.gz
+}
+
+# build
+build() 
+{
+       ant -buildfile build.xml windows-jar
+}
+
+# install
+install() 
+{
+       BIN_DIR=$SRCDIR/package/emulator-manager.package.windows/data/Emulator
+       mkdir -p $BIN_DIR/bin
+
+       cp emulator-manager.jar $BIN_DIR/bin
+       cp emulator-manager.sh $BIN_DIR/bin/emulator-manager.bat
+       cp -r lib $BIN_DIR/bin/
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+
+echo "success"
index 37693ca..e664abd 100755 (executable)
@@ -1,7 +1,7 @@
 @ECHO OFF\r
 set vtm_shortcut_name=Emulator Manager\r
 set execute_path=Emulator\bin\r
-set vtm_execute_file=emulator-manager.exe\r
+set vtm_execute_file=emulator-manager.bat\r
 set icon_path=Emulator\skins\icons\r
 set vtm_icon_file=vtm.ico\r
 \r
index 1a75966..beb30bf 100755 (executable)
@@ -1,6 +1,6 @@
 set vtm_shortcut_name=Emulator Manager\r
 set execute_path=Emulator\bin\r
-set vtm_execute_file=emulator-manager.exe\r
+set vtm_execute_file=emulator-manager.bat\r
 set program_path=%INSTALLED_PATH%\%execute_path%\r
 ECHO Start menu path=%start_menu_programs_path%\r
 echo delete from registry\r
index 80f0bdc..0ee85d0 100644 (file)
@@ -9,7 +9,7 @@ Description: Tizen Emulator Manager
 Package: emulator-manager
 Version: 1.0.1
 OS: windows
-Build-host-os: linux
+Build-host-os: windows
 Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 Source: emulator-manager
 Description: Tizen Emulator Manager