From: Gun Kim Date: Wed, 16 Oct 2013 14:15:46 +0000 (+0900) Subject: [Title] removed an unused file of samples X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F11028%2F2;p=profile%2Fmobile%2Fsdk%2Fweb-sample-build.git [Title] removed an unused file of samples [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I579ee55dacc425f2e8e0150b64541faebad26051 Signed-off-by: Gun Kim --- diff --git a/package/build.linux b/package/build.linux index fac3268..4038911 100644 --- a/package/build.linux +++ b/package/build.linux @@ -48,26 +48,42 @@ build() clone_samples() { mkdir -p "${SRCDIR}/${WEB_SAMPLE_DEST_DIR}/" - for sample_git_path in ${WEB_SAMPLE_GIT_LIST} - do - cd ${SRCDIR}/temp - git clone ${GIT_REPOSITORY}:${sample_git_path} - sampledir=`basename ${sample_git_path}` - cd "${SRCDIR}/temp/${sampledir}" - git checkout ${BRANCH} - cp -rf "${SRCDIR}/temp/${sampledir}" "${SRCDIR}/${WEB_SAMPLE_DEST_DIR}/" - done + for sample_git_path in ${WEB_SAMPLE_GIT_LIST} + do + cd ${SRCDIR}/temp + git clone ${GIT_REPOSITORY}:${sample_git_path} + sampledir=`basename ${sample_git_path}` + cd "${SRCDIR}/temp/${sampledir}" + git checkout ${BRANCH} + cp -rf "${SRCDIR}/temp/${sampledir}" "${SRCDIR}/${WEB_SAMPLE_DEST_DIR}/" + done + cd "${SRCDIR}/${WEB_SAMPLE_DEST_DIR}" + remove_misc_files + #clone hybrid webapp mkdir -p "${SRCDIR}/${HYBRID_SAMPLE_DEST_DIR}/" - for sample_git_path in ${HYBRID_SAMPLE_GIT_LIST} - do - cd ${SRCDIR}/temp - git clone ${GIT_REPOSITORY}:${sample_git_path} - sampledir=`basename ${sample_git_path}` - cd "${SRCDIR}/temp/${sampledir}" - git checkout ${BRANCH} - cp -rf "${SRCDIR}/temp/${sampledir}" "${SRCDIR}/${HYBRID_SAMPLE_DEST_DIR}/" - done + for sample_git_path in ${HYBRID_SAMPLE_GIT_LIST} + do + cd ${SRCDIR}/temp + git clone ${GIT_REPOSITORY}:${sample_git_path} + sampledir=`basename ${sample_git_path}` + cd "${SRCDIR}/temp/${sampledir}" + git checkout ${BRANCH} + cp -rf "${SRCDIR}/temp/${sampledir}" "${SRCDIR}/${HYBRID_SAMPLE_DEST_DIR}/" + done + + cd "${SRCDIR}/${HYBRID_SAMPLE_DEST_DIR}" + remove_misc_files + + cd "${SRCDIR}" +} + +remove_misc_files() +{ + find . -type f -name "CMakeLists.txt" -exec rm -rf {} \; + find . -type f -name "nofile.dummy" -exec rm -rf {} \; + find . -depth -type d -name ".git" -exec rm -rf {} \; + find . -depth -type d -name "packaging" -exec rm -rf {} \; } # install diff --git a/package/changelog b/package/changelog index 6bdb289..7bea545 100644 --- a/package/changelog +++ b/package/changelog @@ -1,3 +1,6 @@ +* 3.0.3 +- Removed an unused file of samples +== gune.kim 2013-10-16 * 3.0.2 - Added web samples == gune.kim 2013-10-16 diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 8410633..fd916b7 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,4 +1,4 @@ -Version:3.0.2 +Version:3.0.3 Maintainer: Shinjae Lee, Junghak Kim, Kangho Kim, Gun Kim Package:mobile-3.0-web-sample