udpate ivi api reference; version up
[profile/ivi/sdk/web-ide-resources.git] / package / build.linux
1 #!/bin/sh -xe
2
3 PLATFORM=ivi-3.0
4
5 # clean
6 clean()
7 {
8         rm -rf ${SRCDIR}/package/*.package.${TARGET_OS}
9 }
10
11 # build
12 build()
13 {
14    echo "=========================================BUILD============================================"
15    echo "done"
16 }
17  
18 # install
19 install()
20 {
21     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 ' ' '@'`
22     for pkgname_and_platform in ${pkgname_and_platform_list}
23     do
24         echo "=========================================INSTALL============================================"
25         pkgname_and_platform=`echo $pkgname_and_platform | tr '@' ' '`
26         package_name=`echo ${pkgname_and_platform} | cut -f1 -d " " | cut -f2 -d ":"`
27
28         INSTALL_DIR=${SRCDIR}/package/${package_name}.package.${TARGET_OS}/data/platforms/${PLATFORM}
29         mkdir -p ${INSTALL_DIR}
30
31         # web package
32         INSTALL_WIDL_DIR="${INSTALL_DIR}/widlprocxmls"
33         mkdir -p ${INSTALL_WIDL_DIR} 
34         cp -rf ${SRCDIR}/widlprocxmls/* ${INSTALL_WIDL_DIR}
35         INSTALL_SCHEMAS_DIR="${INSTALL_DIR}/schemas"
36         mkdir -p ${INSTALL_SCHEMAS_DIR} 
37         cp -rf ${SRCDIR}/schemas/* ${INSTALL_SCHEMAS_DIR}
38         INSTALL_WEBUIFW_DIR="${INSTALL_DIR}/web-ui-fw"
39         mkdir -p ${INSTALL_WEBUIFW_DIR}
40         cp -rf ${SRCDIR}/web-ui-fw/* ${INSTALL_WEBUIFW_DIR}
41         INSTALL_DOC_DIR=${SRCDIR}/package/${package_name}.package.${TARGET_OS}/data/ide/plugins
42         mkdir -p ${INSTALL_DOC_DIR}
43         cp ${SRCDIR}/doc/* ${INSTALL_DOC_DIR}
44     done
45 }