diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-07 13:27:25 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-07 13:28:55 +0100 |
commit | 0faef899469818410e5e6d481f1e6c4fa5ad3d3d (patch) | |
tree | 84061935c0e45eff7201874914b9fdec6e41ea39 /mk | |
parent | 2b7f6b7d7cedfcc7661f02b8092707fde09460a0 (diff) |
lib.sh: support any command on find_exec()
right now, we assume "find", but it adds any number of
arguments next to that.
change it instead to support any command, where the
assumption is that it would generate a list of files
and directories.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'mk')
-rwxr-xr-x | mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -279,7 +279,7 @@ check_project_hashes() [ ! -f "$XBMK_CACHE/hash/$project$tree" ] || \ read -r old_pjhash < "$XBMK_CACHE/hash/$project$tree" - fx_ "x_ sha512sum" "$datadir" "$configdir/$tree" "$mdir" \ + fx_ "x_ sha512sum" find "$datadir" "$configdir/$tree" "$mdir" \ -type f -not -path "*/.git*/*" | awk '{print $1}' > \ "$xbmktmp/project.hash" || err "!h $project $tree" @@ -371,7 +371,7 @@ check_defconfig() elfcheck() { # TODO: *STILL* very hacky check. do it properly (based on build.list) - ( fx_ "exit 1" "$dest_dir" -type f ) || return 1; : + ( fx_ "exit 1" find "$dest_dir" -type f ) || return 1; : } handle_makefile() |