[Title] added build script 47/10347/1
authorGun Kim <gune.kim@samsung.com>
Mon, 30 Sep 2013 06:54:05 +0000 (15:54 +0900)
committerGun Kim <gune.kim@samsung.com>
Mon, 30 Sep 2013 07:08:54 +0000 (16:08 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

package/build.linux [new file with mode: 0644]
package/changelog [new file with mode: 0644]
package/pkginfo.manifest [new file with mode: 0644]

diff --git a/package/build.linux b/package/build.linux
new file mode 100644 (file)
index 0000000..b03b28e
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/sh -xe
+
+PLATFORM=mobile-3.0
+
+GIT_REPOSITORY=tizen-public
+WEB_TEMPLATE_GIT=${GIT_REPOSITORY}:profile/mobile/sdk/web-template
+
+# clean
+clean()
+{
+       rm -rf ${SRCDIR}/package/*.package.${TARGET_OS}
+       rm -rf ${SRCDIR}/temp
+}
+
+# build
+build()
+{
+    pkgname_and_platform_list=`awk 'BEGIN{RS="\n\n"; FS="\n"} /Package:/{for(i=1;i<NF;i++){if($i ~ /^OS:/){print $1,$i}}}' ${SRCDIR}/package/pkginfo.manifest | tr ' ' '@'`
+    for pkgname_and_platform in ${pkgname_and_platform_list}
+    do
+        echo "=========================================BUILD============================================"
+        pkgname_and_platform=`echo $pkgname_and_platform | tr '@' ' '`
+        package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"`
+    done
+
+# clone template
+       mkdir -p ${SRCDIR}/temp
+       mkdir -p ${SRCDIR}/samples
+       cd ${SRCDIR}/temp
+       git clone ${WEB_TEMPLATE_GIT}
+       cp -rf web-template/Template ${SRCDIR}/samples/
+# clone samples (to be)
+}
+# install
+install()
+{
+    pkgname_and_platform_list=`awk 'BEGIN{RS="\n\n"; FS="\n"} /Package:/{for(i=1;i<NF;i++){if($i ~ /^OS:/){print $1,$i}}}' ${SRCDIR}/package/pkginfo.manifest | tr ' ' '@'`
+    for pkgname_and_platform in ${pkgname_and_platform_list}
+    do
+        echo "=========================================INSTALL============================================"
+        pkgname_and_platform=`echo $pkgname_and_platform | tr '@' ' '`
+        package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"`
+
+        INSTALL_DIR=${SRCDIR}/package/${package_name}.package.${TARGET_OS}/data/platforms/${PLATFORM}
+        mkdir -p ${INSTALL_DIR}
+
+        # web package
+        INSTALL_SAMPLE_DIR="${INSTALL_DIR}/samples"
+        mkdir -p ${INSTALL_SAMPLE_DIR}
+        cp -rf ${SRCDIR}/samples/* ${INSTALL_SAMPLE_DIR}
+    done
+}
diff --git a/package/changelog b/package/changelog
new file mode 100644 (file)
index 0000000..f495f3f
--- /dev/null
@@ -0,0 +1,3 @@
+* 3.0.0
+- Created package
+== gune.kim <gune.kim@samsung.com> 2013-09-30
diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest
new file mode 100644 (file)
index 0000000..5eb1ef2
--- /dev/null
@@ -0,0 +1,7 @@
+Version:3.0.0
+Maintainer: Shinjae Lee<poiema@samsung.com>, Junghak Kim<kjh5@samsung.com>, Kangho Kim<kh5325.kim@samsung.com>, Gun Kim<gune.kim@samsung.com>
+
+Package:mobile-3.0-web-sample
+OS:ubuntu-32, ubuntu-64, windows-32, windows-64, macos-64
+Build-host-os:ubuntu-32
+Description:Web samples