[Title] cli: added hybridapp cli document
authorJihoon Song <jihoon80.song@samsung.com>
Sat, 16 Mar 2013 06:11:55 +0000 (15:11 +0900)
committerJihoon Song <jihoon80.song@samsung.com>
Sat, 16 Mar 2013 06:11:55 +0000 (15:11 +0900)
[Desc.]
[Issue]

Change-Id: I6c694c5b1a00ed5b86b8fe9167d32b654788b193

org.tizen.cli/doc/install/bin_/web-hybridapp
org.tizen.cli/doc/install/document/README_HYBRIDAPP.txt [new file with mode: 0755]
package/build.ubuntu-32
package/build.ubuntu-64

index 9834b30..2c29a31 100755 (executable)
@@ -96,7 +96,7 @@ function generateStructure() {
     ## make temp directory
     if [ -d "${TEMPPATH}" ]; then
         echo "The old structure is detected. remove this."
-        rm -rI "${TEMPPATH}"
+        rm -rf "${TEMPPATH}"
     fi
     mkdir -p "${TEMPPATH}"
     isError "make ${TEMPPATH} directory"
diff --git a/org.tizen.cli/doc/install/document/README_HYBRIDAPP.txt b/org.tizen.cli/doc/install/document/README_HYBRIDAPP.txt
new file mode 100755 (executable)
index 0000000..1b662e2
--- /dev/null
@@ -0,0 +1,24 @@
+README\r
+\r
+INTRODUCTION\r
+This CLI name is 'web-hybridapp' for generating hybrid app structure.\r
+(Linux version is supported currently, and Windows version will be supported.)\r
+\r
+REQUIRED ARGUMENTS\r
+Both a built native service app project path and a web project path are required.\r
+\r
+USAGE\r
+$ web-hybridapp [Native service app project path] [Web project path]\r
+\r
+EXAMPLES\r
+$ web-hybridapp ~/workspace/hybridserviceapp ~/workspace/hybridwebapp\r
+or\r
+$ web-hybridapp hybridserviceapp hybridwebapp\r
+\r
+RESULT\r
+The '.pack' folder will be created under current folder, and the web project name folder will be created under this folder.\r
+For example, if current folder name is '~/workspace' and web project path is '~/workspace/hybridwebapp', the result folder is '~/workspace/.pack/hybridwebapp'.\r
+\r
+USEFUL INFORMATION\r
+If Native service app project has both a Release binary and a Debug binary, copy a Release binary first. (In this case, a Debug binary is not copied.)\r
+After this CLI process was completed, the next step is to sign the result folder using 'web-signing' CLI and then pack the result folder using 'web-packaging' CLI. Please refer to each detail in Web CLI help documents.\r
index 9301b15..60b2a67 100755 (executable)
@@ -167,6 +167,7 @@ install()
     cp -r $PROJECT_HOME/doc/install/conf $TARGET/conf || true
        cp -r $PROJECT_HOME/doc/install/sample $TARGET/sample || true
        cp -r $PROJECT_HOME/doc/install/realm $TARGET/realm || true
+       cp -r $PROJECT_HOME/doc/install/document $TARGET || true
        cp -r $LIB/* $TARGET/lib || true
        cp dist/*.jar $TARGET/lib || true
        # native-cli install
index c844a8b..5ba97a5 100755 (executable)
@@ -165,6 +165,7 @@ install()
     cp -r $PROJECT_HOME/doc/install/conf $TARGET/conf || true
        cp -r $PROJECT_HOME/doc/install/sample $TARGET/sample || true
        cp -r $PROJECT_HOME/doc/install/realm $TARGET/realm || true
+       cp -r $PROJECT_HOME/doc/install/document $TARGET || true
        cp -r $LIB/* $TARGET/lib || true
        cp dist/*.jar $TARGET/lib || true
        # native-cli install