__set_product_version() {
echo "Set product's version (${product_version})"
-
+
product_path="${SRCDIR}/${branding_path}/${branding_file}"
cp ${product_path} ${product_path}.bkp
-
+
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="${SRCDIR}/org.tizen.dynamicanalyzer.workbench/about.mappings"
cp ${about_mapping_path} ${about_mapping_path}.bkp
-
+
about_version_parameter="1"
about_build_time_parameter="2"
sed -e "s;\(^${about_version_parameter}=\).*;\1${product_version};g" \
if [ "${platform}" = "macos-64" ]; then
reference_ide_path=${ROOTDIR}/${ide_package_name}/data/eclipse-pde/Eclipse.app/Contents/Eclipse
- reference_ce_path=${ROOTDIR}/TizenStudio.app/Contents/Eclipse
+ reference_ce_path=${ROOTDIR}/IDE.app/Contents/Eclipse
fi
}
__clean_packaging_environment
install_ide_path=${INSTALL_DIR}/${ide_root_path_name}
-
+
if [ ! -d ${install_ide_path} ]
then
mkdir -p ${install_ide_path}
}
# build
-build()
+build()
{
echo "=========================================BUILD============================================"
pkgname_and_platform_list=`awk 'BEGIN{RS="\n\n"; FS="\n"} /Package:/{for(i=1;i<NF;i++){if($i ~ /^OS:/){print $1,$i}}}' ${SRCDIR}/package/pkginfo.manifest | tr ' ' '@'`
pkgname_and_platform=`echo $pkgname_and_platform | tr '@' ' '`
package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"`
platform=`echo ${pkgname_and_platform} | cut -f2 -d " " | cut -f2 -d ":"`
-
+
if [ "x${BUILD_TARGET_OS}" = "x${platform}" ]
then
if [ "x${package_name}" = "xdynamic-analyzer-product" ]
}
# install
-install()
+install()
{
pkgname_and_platform_list=`awk 'BEGIN{RS="\n\n"; FS="\n"} /Package:/{for(i=1;i<NF;i++){if($i ~ /^OS:/){print $1,$i}}}' ${SRCDIR}/package/pkginfo.manifest | tr ' ' '@'`
for pkgname_and_platform in ${pkgname_and_platform_list}
else
echo ""
fi
- done
+ done
}
[ "$1" = "clean" ] && clean
[ "$1" = "build" ] && build
[ "$1" = "install" ] && install
exit 0
+