mirror of
https://github.com/openharmony/third_party_pcre2.git
synced 2026-07-01 10:05:26 -04:00
2941ab2b9d
Signed-off-by: Haryslee <lihao189@huawei.com>
19 lines
591 B
Bash
Executable File
19 lines
591 B
Bash
Executable File
#! /bin/bash
|
|
|
|
pcre2_lib_dir=$1
|
|
pcre2_gen_dir=$2
|
|
|
|
function check_md5_and_copy() {
|
|
echo "check_md5_and_copy $1 $2"
|
|
check_config_result=$(bash $pcre2_lib_dir/check_md5.sh $1 $2)
|
|
echo "${check_config_result}x"
|
|
if [[ "${check_config_result}x" == "x" ]];then
|
|
cp -f $1 $2
|
|
fi
|
|
}
|
|
|
|
mkdir -P $pcre2_gen_dir/src
|
|
check_md5_and_copy $pcre2_lib_dir/src/config.h.generic $pcre2_gen_dir/src/config.h
|
|
check_md5_and_copy $pcre2_lib_dir/src/pcre2.h.generic $pcre2_gen_dir/src/pcre2.h
|
|
check_md5_and_copy $pcre2_lib_dir/src/pcre2_chartables.c.dist $pcre2_gen_dir/src/pcre2_chartables.c
|