File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ mkdir -p "${build_dir}/arrow-format"
4444cp -r " ${source_dir} /arrow-format" " ${build_dir} "
4545cp -r " ${source_dir} /dev" " ${build_dir} "
4646
47- for source_root in $( find " ${source_dir} " -not \( -path " ${source_dir} " /build -prune \) -type f -name pom.xml -exec realpath -s --relative-to=" ${source_dir} " ' {}' \; |
47+ # Instead of hardcoding the list of directories to copy, find pom.xml and then
48+ # crawl back up to the top. GNU realpath has --relative-to but this does not
49+ # work on macOS
50+ for source_root in $( find " ${source_dir} " -not \( -path " ${source_dir} " /build -prune \) -type f -name pom.xml -exec python -c " import os.path; print(os.path.relpath('{}', '${source_dir} '))" \; |
4851 awk -F/ ' {print $1}' |
4952 sort -u) ; do
5053 cp -r " ${source_dir} /${source_root} " " ${build_dir} "
You can’t perform that action at this time.
0 commit comments