48 lines
1.8 KiB
Bash
48 lines
1.8 KiB
Bash
#!/bin/bash
|
|
# Copyright (c) Huawei Technologies Co., Ltd. 2010-2018. All rights reserved.
|
|
# description: the script that make install libxml2
|
|
# date: 2020-06-24
|
|
# version: 1.2
|
|
# history: 2020-06-24 fix buildcheck warning
|
|
|
|
set -e
|
|
|
|
##############################################################################################################
|
|
# dist the real files to the matched path
|
|
# we could makesure that $INSTALL_COMPOENT_PATH_NAME is not null, '.' or '/'
|
|
##############################################################################################################
|
|
function dist_component()
|
|
{
|
|
for COMPILE_TYPE in ${COMPLIE_TYPE_LIST}
|
|
do
|
|
case "${COMPILE_TYPE}" in
|
|
comm)
|
|
mkdir -p ${INSTALL_COMPOENT_PATH_NAME}/comm
|
|
rm -rf ${INSTALL_COMPOENT_PATH_NAME}/comm/*
|
|
cp -r ${LOCAL_DIR}/install_comm_dist/* ${INSTALL_COMPOENT_PATH_NAME}/comm/
|
|
if [ $? -ne 0 ]; then
|
|
die "[Error] \"cp -r ${LOCAL_DIR}/install_comm_dist/* ${INSTALL_COMPOENT_PATH_NAME}/comm\" failed."
|
|
fi
|
|
;;
|
|
release)
|
|
;;
|
|
debug)
|
|
;;
|
|
llt)
|
|
mkdir -p ${INSTALL_COMPOENT_PATH_NAME}/llt
|
|
rm -rf ${INSTALL_COMPOENT_PATH_NAME}/llt/*
|
|
cp -r ${LOCAL_DIR}/install_llt_dist/* ${INSTALL_COMPOENT_PATH_NAME}/llt
|
|
if [ $? -ne 0 ]; then
|
|
die "[Error] \"cp -r ${LOCAL_DIR}/install_llt_dist/* ${INSTALL_COMPOENT_PATH_NAME}/llt\" failed."
|
|
fi
|
|
;;
|
|
release_llt)
|
|
;;
|
|
debug_llt)
|
|
;;
|
|
*)
|
|
esac
|
|
log "[Notice] libxml2 dist using \"${COMPILE_TYPE}\" has been finished!"
|
|
done
|
|
}
|