mirror of
https://github.com/armbian/build.git
synced 2025-08-14 23:26:57 +02:00
13 lines
411 B
Bash
13 lines
411 B
Bash
# copy_all_packages_files_for <folder> to package
|
|
#
|
|
copy_all_packages_files_for() {
|
|
local package_name="${1}"
|
|
for package_src_dir in ${PACKAGES_SEARCH_ROOT_ABSOLUTE_DIRS}; do
|
|
local package_dirpath="${package_src_dir}/${package_name}"
|
|
if [ -d "${package_dirpath}" ]; then
|
|
cp -r "${package_dirpath}/"* "${destination}/" 2> /dev/null
|
|
display_alert "Adding files from" "${package_dirpath}"
|
|
fi
|
|
done
|
|
}
|