Files
openGauss-third_party/dependency/lz4/clean_component.sh
2020-12-31 15:28:51 +08:00

35 lines
951 B
Bash

#!/bin/bash
# Copyright (c) Huawei Technologies Co., Ltd. 2010-2018. All rights reserved.
# description: the script that make install lz4
# date: 2019-12-28
# version: 1.11
# history:
# 2019-5-5 update to lz4 1.8.3 from 1.7.5
# 2019-12-12 update to lz4 1.9.2 from 1.8.3
# 2019-12-28 change formatting and add copyright notice
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_*
rm -rf *.log
log "[Notice] lz4 clean has been finished!"
}