#!/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 ####################################################################### # clean component ####################################################################### function clean_component() { cd ${LOCAL_DIR}/${SOURCE_CODE_PATH} if [ $? -ne 0 ]; then die "[Error] cd ${LOCAL_DIR}/${SOURCE_CODE_PATH} failed." fi make clean cd ${LOCAL_DIR} if [ $? -ne 0 ]; then die "[Error] cd ${LOCAL_DIR} failed." fi [ -n "${SOURCE_CODE_PATH}" ] && rm -rf ${SOURCE_CODE_PATH} rm -rf install_comm_* install_llt_* log "[Notice] libxml2 clean has been finished!" }