[Title] modified wrong build script 78/10378/1
authorGun Kim <gune.kim@samsung.com>
Tue, 1 Oct 2013 04:44:18 +0000 (13:44 +0900)
committerGun Kim <gune.kim@samsung.com>
Tue, 1 Oct 2013 04:44:18 +0000 (13:44 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Signed-off-by: Gun Kim <gune.kim@samsung.com>
package/build.linux

index e3bac8e..4e1c5eb 100644 (file)
@@ -4,6 +4,8 @@ PLATFORM=mobile-3.0
 
 GIT_REPOSITORY=public-git
 WEB_TEMPLATE_GIT=${GIT_REPOSITORY}:profile/mobile/sdk/web-template
+# The BRANCH should be changed to environment variable of build system
+BRANCH=tizen
 
 # clean
 clean()
@@ -23,12 +25,15 @@ build()
         package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"`
     done
 
-# clone template
        mkdir -p ${SRCDIR}/temp
        mkdir -p ${SRCDIR}/samples
+# clone template
        cd ${SRCDIR}/temp
        git clone ${WEB_TEMPLATE_GIT}
-       cp -rf web-template/Template ${SRCDIR}/samples/
+       cd ${SRCDIR}/temp/web-template
+       git checkout ${BRANCH}
+       cp -rf ${SRCDIR}/temp/web-template/Template ${SRCDIR}/samples/
+       cd ${SRCDIR}/temp
 # clone samples (to be)
 }