From c03d4f48b0113f639a06c605e170bc313536c219 Mon Sep 17 00:00:00 2001 From: Gun Kim Date: Wed, 16 Oct 2013 23:15:46 +0900 Subject: [PATCH] [Title] removed an unused file of samples [Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I579ee55dacc425f2e8e0150b64541faebad26051 Signed-off-by: Gun Kim --- package/build.linux | 52 +++++++++++++++++++++++++++++++----------------- package/changelog | 3 +++ package/pkginfo.manifest | 2 +- 3 files changed, 38 insertions(+), 19 deletions(-) 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 -- 2.7.4