cd "$__cwd"
__cwd=`pwd`
-slppath=`grep TIZEN_SDK_INSTALLED_PATH ${HOME}/.TizenSDK/tizensdkpath`
-TIZEN_SDK_INSTALL_PATH=`echo $slppath | cut -f2- -d"="`
+#slppath=`grep TIZEN_SDK_INSTALLED_PATH ${HOME}/.TizenSDK/tizensdkpath`
+#TIZEN_SDK_INSTALL_PATH=`echo $slppath | cut -f2- -d"="`
+
+TIZEN_SDK_INSTALL_PATH=$(dirname $(readlink -f $0))/../
+slppath=`echo "TIZEN_SDK_INSTALLED_PATH=${TIZEN_SDK_INSTALL_PATH}" > ${HOME}/.TizenSDK/tizensdkpath`
export PATH=${PATH}:$TIZEN_SDK_INSTALL_PATH/SDK/build-system/bin
export no_proxy=$no_proxy,"127.0.0.1"
#!/bin/bash -x
build_path=${SRCDIR}/build_result
+build_time=`date +%Y%m%d-%H%M`
__set_parameter()
{
__set_build_parameter()
{
+ manifest_version=`grep Version: ${SRCDIR}/package/pkginfo.manifest | cut -f2 -d":" | head -n 1`
+ product_version=${manifest_version}
+ build_major_version=`echo ${manifest_version} | cut -f1 -d"."`
+ build_minor_version=`echo ${manifest_version} | cut -f2 -d"."`
+ build_bugfix_version=`echo ${manifest_version} | cut -f3 -d"."`
+ branding_path="org.tizen.base.platform"
+ branding_file="TizenIDE_base_${platform}.product"
+
case ${platform} in
linux)
reference_ide_path=${ROOTDIR}/indigo-pde/eclipse
fi
}
+__set_product_version() {
+ echo "Set product's version (${product_version})"
+
+ product_path="${build_path}/plugins/${branding_path}/${branding_file}"
+ sed -e "s;\(<property name=\"eclipse.buildId\" value=\).*\( />\);\1\"${product_version}\"\2;g" \
+ < ${product_path} > ${product_path}.mod
+ mv ${product_path}.mod ${product_path}
+
+ about_mapping_path="${build_path}/plugins/${branding_path}/about.mappings"
+ about_major_version_parameter="0"
+ about_ir_version_parameter="1"
+ about_build_version_parameter="2"
+ about_build_time_parameter="3"
+ sed -e "s;\(^${about_major_version_parameter}=\).*;\1${build_major_version};g" \
+ -e "s;\(^${about_ir_version_parameter}=\).*;\1${build_minor_version};g" \
+ -e "s;\(^${about_build_version_parameter}=\).*;\1${build_bugfix_version};g" \
+ -e "s;\(^${about_build_time_parameter}=\).*;\1${build_time};g" \
+ < ${about_mapping_path} > ${about_mapping_path}.mod
+ mv ${about_mapping_path}.mod ${about_mapping_path}
+}
+
__make_ant_build_properties_file()
{
builder_path="${SRCDIR}/builder"
if [ -d $reference_ide_path ]
then
- sed -e "s;\(^product=\).*;\1/org.tizen.base.platform/TizenIDE_base_${platform}.product;g" \
+ sed -e "s;\(^product=\).*;\1/${branding_path}/${branding_file};g" \
-e "s;\(^buildDirectory=\).*;\1${build_path};g" \
-e "s;\(^base=\).*;\1${parent_path_of_based_eclipse};g" \
-e "s;\(^baseLocation=\).*;\1${reference_ide_path};g" \
__clean_build_environment
__copy_build_sources
__copy_dependency_plugins
+ __set_product_version
__make_ant_build_properties_file
__execute_pde_build
__unzip_plugin_pack