if [ "x$1" = "x" ]
then
echo "
-Usage : build_ide.sh PLATFORM_NAME TARGET_ECLIPSE_PATH
+Usage : build.sh PLATFORM_NAME TARGET_ECLIPSE_PATH
PLATFORM_NAME You can set \"linux\" or \"windows\"
TARGET_ECLIPSE_PATH Set target eclipse path.
if [ "x$2" = "x" ]
then
echo "
-Usage : build_ide.sh $1 TARGET_ECLIPSE_PATH
+Usage : build.sh $1 TARGET_ECLIPSE_PATH
TARGET_ECLIPSE_PATH Set target eclipse path.
For example, $HOME/git/fresh-ide-pde
"
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}/..
;;
esac
+result_archive_file=${build_id}-${archive_platform_name}.${windowing}.${architecture}.zip
+
if [ -d $build_path ]
then
echo "Build result directory : [$build_path]"
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 ]
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..."
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