diff options
author | Taeyoung Son <taeyoung2.son@samsung.com> | 2012-06-25 14:41:10 +0900 |
---|---|---|
committer | Taeyoung Son <taeyoung2.son@samsung.com> | 2012-06-25 14:41:10 +0900 |
commit | 8f2b621f7698e35616bc1e87e563de5dd99625b2 (patch) | |
tree | bdcfe871dd496dad1a3ad7985b189ad071f3b899 | |
parent | 47df3da798dbc5e532a2b477eb22e63ebc5e09a4 (diff) | |
download | codecoverage-eplugin-8f2b621f7698e35616bc1e87e563de5dd99625b2.tar.gz codecoverage-eplugin-8f2b621f7698e35616bc1e87e563de5dd99625b2.tar.bz2 codecoverage-eplugin-8f2b621f7698e35616bc1e87e563de5dd99625b2.zip |
[Title] Removed unnecessary files.
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
Change-Id: I5d406104761982501f26f9b818459f4e41fc6467
-rwxr-xr-x | build.sh | 159 | ||||
-rw-r--r-- | hudson.sh | 113 | ||||
-rwxr-xr-x | package.sh | 96 | ||||
-rw-r--r-- | pkginfo.manifest | 6 |
4 files changed, 0 insertions, 374 deletions
diff --git a/build.sh b/build.sh deleted file mode 100755 index a225e01..0000000 --- a/build.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/bash -start_path=`pwd` - -############################################################### -## -## Please modify parameter value. -## -############################################################### -build_type=N -build_id=code_coverage_build -build_path="`pwd`/../build_result" - -############################################################### -## -## Do not touch here. -## -############################################################### -build_result_directory=${build_type}.${build_id} -builder_path="$start_path/builder" -equinox_launcher=`echo org.eclipse.equinox.launcher_*.jar` -pde_build=`echo org.eclipse.pde.build_*` -metadata_path=$start_path/builder - -if [ "x$1" = "x" ] -then - echo " -Usage : build_ide.sh PLATFORM_NAME TARGET_ECLIPSE_PATH - - PLATFORM_NAME You can set \"linux\" or \"windows\" - TARGET_ECLIPSE_PATH Set target eclipse path. - For example, $HOME/git/fresh-ide-pde -" - exit 1 -fi - -if [ "x$2" = "x" ] -then - echo " -Usage : build_ide.sh $1 TARGET_ECLIPSE_PATH - TARGET_ECLIPSE_PATH Set target eclipse path. - For example, $HOME/git/fresh-ide-pde -" - exit 1 -fi - -build_result_path="$build_path/$build_result_directory" -platform=$1 -based_eclipse_path=$2 -fresh_ide_path=$3 -parent_path_of_based_eclipse=${based_eclipse_path}/.. -architecture=x86 - -case ${platform} in - linux) - archive_platform_name=linux - windowing=gtk - ;; - windows) - archive_platform_name=win32 - windowing=win32 - ;; - *) - echo "${platform} is not support yet." - exit 1 - ;; -esac - -result_archive_file=${build_id}-${archive_platform_name}.${windowing}.${architecture}.zip - -if [ -d $build_path ] -then - echo "Build result directory : [$build_path]" -else - echo "Make build result directory [$build_path]" - mkdir -p $build_path -fi - -echo "Remove legacy build files..." -if [ -d ${build_result_path}/${archive_platform_name}.${windowing}.${architecture} ] -then - rm -rf ${build_result_path}/${archive_platform_name}.${windowing}.${architecture} -fi -if [ -e ${build_result_path}/${result_archive_file} ] -then - rm -rf ${build_result_path}/${result_archive_file} -fi - -if [ -d $build_path/plugins ] -then - echo "plugins directory recreate..." - rm -rf $build_path/plugins - mkdir $build_path/plugins -else - echo "Make plugins directory..." - mkdir $build_path/plugins -fi -if [ -d $build_path/features/ ] -then - echo "features directory recreate..." - rm -rf $build_path/features - mkdir $build_path/features -else - echo "Make features directory..." - mkdir $build_path/features -fi - -echo "Copy features from $start_path to $build_path/features" -cp -r $start_path/*.feature $build_path/features - -echo "Copy plugins from $start_path to $build_path/plugins" -cp -r $start_path/* $build_path/plugins -rm -rf $build_path/plugins/*.feature - -echo "Copy fresh ide plugins..." -if [ -d ${fresh_ide_path} ] -then - cp -rf ${fresh_ide_path}/${archive_platform_name}.${windowing}.${architecture}/IDE/plugins/* ${build_path}/plugins - cp -rf ${fresh_ide_path}/${archive_platform_name}.${windowing}.${architecture}/IDE/features/* ${build_path}/features -else - echo "ERROR : Fresh IDE does not exist..." - exit 1 -fi - -echo "Make build.properties file..." -if [ ! -e $builder_path/build.properties.clean ] ; then - echo "ERROR : \"build.properties.clean\" file does not exist..." - exit 1 -fi -cp $builder_path/build.properties.clean $build_path -cp $builder_path/customTargets.xml $build_path - -if [ -d $based_eclipse_path ] -then - sed -e "s;\(^buildDirectory=\).*;\1${build_path};g" -e "s;\(^base=\).*;\1${parent_path_of_based_eclipse};g" -e "s;\(^baseLocation=\).*;\1${based_eclipse_path};g" -e "s;\(^configs=\).*;\1${archive_platform_name},${windowing},${architecture};g" -e "s;\(^buildType=\).*;\1${build_type};g" -e "s;\(^buildId=\).*;\1${build_id};g" < $build_path/build.properties.clean > $build_path/build.properties -else - echo "ERROR : target eclipse is not exist." - exit 1 -fi - -echo "Execute Product Ant Builder..." -java -server -XX:+UseParNewGC -jar ${based_eclipse_path}/plugins/$equinox_launcher -application org.eclipse.ant.core.antRunner -buildfile ${based_eclipse_path}/plugins/$pde_build/scripts/productBuild/productBuild.xml -Dbuilder=$build_path 2>&1 - -if [ $? != 0 ]; -then - echo "Build failed..." - exit 1 -fi - -echo "unzip to $build_result_path" -unzip -a $build_result_path/${result_archive_file} -d $build_result_path/${archive_platform_name}.${windowing}.${architecture} - -#echo "Delete temp files..." -#rm -rf $build_path/features -#rm -rf $build_path/plugins -#rm $build_path/*.xml -#rm $build_path/*.properties -#rm $build_path/*.properties.clean - -echo "Build SUCCESS. You will find SDK IDE in \"${build_result_path}\"." diff --git a/hudson.sh b/hudson.sh deleted file mode 100644 index c4e579f..0000000 --- a/hudson.sh +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/bash - -##################################################################### -## -## Please set parameter value. -## -##################################################################### -git_name=ide-plugin-codecoverage -git_repo_path=/slp/sdk/da - - -##################################################################### -## -## Do not touch here. -## -##################################################################### - -build_path=`pwd` -git_user=slp-git -target_eclipse_parent_path=/var/lib/hudson -git_repo_ide_path=/slp/sdk/ide -fresh_ide_git_name=fresh-ide -build() -{ - echo "Platform : ${platform}" - if [ "x${platform}" = "x" ] - then - echo "ERROR : Please set \"platform\" value." - exit 1 - fi - - echo "target eclipse : ${target_eclipse}" - if [ "x${target_eclipse}" = "x" ] - then - echo "ERROR : Please set \"target_eclipse\" value." - exit 1 - fi - - echo "Getting ${target_eclipse} from git repository..." - cd ${target_eclipse_parent_path} - if [ -d ${target_eclipse_parent_path}/${target_eclipse} ] - then - cd ${target_eclipse_parent_path}/${target_eclipse} - git pull - else - cd ${target_eclipse_parent_path} - git clone ${git_user}:${git_repo_ide_path}/${target_eclipse} 2>&1 - fi - - if [ $? != 0 ] - then - echo "ERROR : Connect to git repository failed..." - exit 1 - fi - - echo "Getting ${git_name} from git repository..." - cd ${build_path} - if [ -d ${git_name} ] - then - rm -rf ${git_name} - fi - git clone ${git_user}:${git_repo_path}/${git_name} 2>&1 - - echo "BUILD START" - cd ${build_path}/${git_name} - ./build.sh ${platform} ${target_eclipse_parent_path}/${target_eclipse}/eclipse 2>&1 - - if [ $? != 0 ] - then - echo "ERROR : Build Failed..." - exit 1 - fi -} - -package_and_upload() -{ - echo "PACKAGING START" - cd ${build_path}/${git_name} - echo =========================================================================== - echo ${platform} - echo `pwd` - echo ${build_path}/ - echo =========================================================================== - - case ${platform} in - linux) - build_result_path=${build_path}/build_result/N.code_coverage_build/linux.gtk.x86/codecoverage - ;; - windows) - build_result_path=${build_path}/build_result/N.code_coverage_build/win32.win32.x86/codecoverage - ;; - esac - - ./package.sh ${platform} ${build_result_path} ${BUILD_NUMBER} -} - -build_package_upload_windows_version() -{ - platform=windows - target_eclipse=fresh-ide-winpde - build - package_and_upload -} -build_package_upload_linux_version() -{ - platform=linux - target_eclipse=fresh-ide-pde - build - package_and_upload -} - -build_package_upload_linux_version -build_package_upload_windows_version diff --git a/package.sh b/package.sh deleted file mode 100755 index d54952c..0000000 --- a/package.sh +++ /dev/null @@ -1,96 +0,0 @@ -#! /bin/bash - -if [ $# -ne 3 ] -then - echo - "Usage : $0 [platform] [build result path] [build number]" - exit 1 -fi - -PLATFORM=$1 -BUILD_RESULT_PATH=$2 -BUILD_NUMBER=$3 - -PROJECT_DIR=`pwd` -PKG_DIR=${PROJECT_DIR}/package -PLATFORM_DIR=${PKG_DIR}/${PLATFORM} -DATA_DIR=${PLATFORM_DIR}/data -CATEGORY_DIR=${DATA_DIR}/NativeIDE - -echo ${PKG_DIR} - -makePackageDir() -{ - mkdir -p ${CATEGORY_DIR} -} - -copyBuildResult() -{ - cp -r ${BUILD_RESULT_PATH}/features ${CATEGORY_DIR} - cp -r ${BUILD_RESULT_PATH}/plugins ${CATEGORY_DIR} -} - -MODULE=CodeCoverage -MAJOR_VERSION=1 -MINOR_VERSION=0 - -PACKAGE_NAME=${MODULE}_${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}_${PLATFORM} -PACKAGE_FILE=${PACKAGE_NAME}.zip -makePackage() -{ - cp ${PROJECT_DIR}/pkginfo.manifest . - zip -r ${PACKAGE_FILE} pkginfo.manifest data -} - -CURRENT_DATE=`date +%Y%m%d` -UPLOAD_SERVER_IP=172.21.111.180 -if [ ${PLATFORM} = linux ]; then - UPLOAD_PLATFORM=LINUX -else if [ ${PLATFORM} = windows ]; then - UPLOAD_PLATFORM=WINDOWS -else - echo ERROR unknown platform - exit 1 -fi -fi -UPLOAD_DIR=/packages/${CURRENT_DATE}_PACKAGES_${UPLOAD_PLATFORM} -UPLOAD_USER=core -UPLOAD_PASSWORD=tmaxcore -uploadPackage() -{ - ncftpput -u ${UPLOAD_USER} -p ${UPLOAD_PASSWORD} ${UPLOAD_SERVER_IP} ${UPLOAD_DIR} ${PACKAGE_FILE} -} - -clean() -{ -# ncftpget -DD -u ${upload_user} -p ${upload_password} ${upload_server} ~/ ${upload_directory}/${package_name}_*_${platform}.zip - rm -rf ${PKG_DIR} -} - -echo `pwd` - -#if [ -e ${PKG_DIR} ]; then -# clean -#fi - -makePackageDir -if [ $? -ne 0 ]; then - echo "ERROR makePackageDir $?" - exit 1 -fi -copyBuildResult -if [ $? -ne 0 ]; then - echo "ERROR copyBuildResult $?" - exit 1 -fi -cd ${PLATFORM_DIR} -makePackage -if [ $? -ne 0 ]; then - echo "ERROR makePackage $?" - exit 1 -fi -uploadPackage -if [ $? -ne 0 ]; then - echo "ERROR uploadPackage $?" - exit 1 -fi diff --git a/pkginfo.manifest b/pkginfo.manifest deleted file mode 100644 index e01ef9e..0000000 --- a/pkginfo.manifest +++ /dev/null @@ -1,6 +0,0 @@ -Package:CodeCoverage -Version:1.0 -Maintainer:juyung Kim <j0.kim@samsung.com>, jeonghwan Kim <jeonghwan0613.kim@samsung.com> -Description:CodeCoverage -Category:IDE/NativeIDE/Plugins/CodeCoverage -Depends:fresh-ide |