From ec675207187d5017e8ec29b1d261980060ecff8b Mon Sep 17 00:00:00 2001 From: jason_w Date: Wed, 31 Jul 2024 14:58:06 +0800 Subject: [PATCH] fix: prevent header of proto being deleted --- tools/install/install_source.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install/install_source.py.in b/tools/install/install_source.py.in index 63d872554c2..b8a8957466a 100755 --- a/tools/install/install_source.py.in +++ b/tools/install/install_source.py.in @@ -230,7 +230,7 @@ def install_src_file(): dst_full = src_install_dirs_dict[file_filter][i]["dst"] if not os.path.exists(dst_full): os.makedirs(dst_full) - if file_filter == "*.h": + if file_filter == "*.h*": # prevent header of proto being deleted shell_cmd("rsync -aLr --whole-file --include='{}' --include='*/' --exclude='*' {}/ {}/" .format(file_filter, is_relative_link(os.path.join(pwd, i)), dst_full)) @@ -242,7 +242,7 @@ def install_src_file(): dst_full = src_install_dirs_dict[file_filter][common_prefix]["dst"] if not os.path.exists(dst_full): os.makedirs(dst_full) - if file_filter == "*.h": + if file_filter == "*.h*": # prevent header of proto being deleted shell_cmd("rsync -aLr --whole-file --include='{}' --include='*/' --exclude='*' {}/ {}/" .format(file_filter, is_relative_link(os.path.join(pwd, common_prefix)), dst_full))