From 265a866f501ac1a530090bb942f7f03b36760eb8 Mon Sep 17 00:00:00 2001 From: "sungmin82.ha" Date: Thu, 23 Jun 2011 13:07:48 +0900 Subject: [PATCH] upload for Hudson build --- build.sh | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 52f541f..22d3ca5 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,7 @@ start_path=`pwd` ## ############################################################### build_type=N -build_id=EventInjctor_build +build_id=eventinjector_build build_path="`pwd`/../build_result" ############################################################### @@ -44,6 +44,11 @@ Usage : build_ide.sh $1 TARGET_ECLIPSE_PATH exit 1 fi +if [ "x$3" != "x" ] +then + build_path=$3 +fi + platform=$1 based_eclipse_path=$2 parent_path_of_based_eclipse=${based_eclipse_path}/.. @@ -64,6 +69,8 @@ case ${platform} in ;; esac +result_archive_file=${build_id}-${archive_platform_name}.${windowing}.${architecture}.zip + if [ -d $build_path ] then echo "Build result directory : [$build_path]" @@ -72,9 +79,14 @@ else mkdir -p $build_path fi -if [ -d $build_result_path ] +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 + rm -rf ${build_result_path}/${result_archive_file} fi if [ -d $build_path/plugins ] @@ -106,9 +118,7 @@ rm -rf $build_path/plugins/*.feature echo "Copy fresh ide plugins..." if [ -d ${fresh_ide_path} ] then - cp -rf ${fresh_ide_path}/*.feature ${build_path}/plugins - cp -rf ${fresh_ide_path}/* ${build_path}/plugins - rm -rf ${build_path}/plugins/*.feature + cp -rf /var/lib/hudson/jobs/slp_sdk_fresh_ide/workspace/build_result/N.fresh_ide_build/${archive_platform_name}.${windowing}.${architecture}/IDE/plugins/* ${build_path}/plugins fi echo "Make build.properties file..." @@ -137,7 +147,7 @@ then fi echo "unzip to $build_result_path" -unzip -a $build_result_path/${build_id}-${archive_platform_name}.${windowing}.${architecture}.zip -d $build_result_path/${archive_platform_name}.${windowing}.${architecture} +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 -- 2.7.4