diff options
author | Érico Nogueira <erico.erc@gmail.com> | 2021-06-08 14:43:00 +0000 |
---|---|---|
committer | Érico Nogueira Rolim <34201958+ericonr@users.noreply.github.com> | 2021-07-22 14:56:26 +0000 |
commit | 6303c2e6ce4e4cd8ba978dd06911ed82708a9087 (patch) | |
tree | d808f3e34db752d0c489bc36b8c957861769b06d /common/hooks/pre-check | |
parent | e18333cb8f65b8ef7c438098e1d4b2165d5fffd2 (diff) | |
download | void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.tar void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.tar.gz void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.tar.bz2 void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.tar.lz void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.tar.xz void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.tar.zst void-packages-6303c2e6ce4e4cd8ba978dd06911ed82708a9087.zip |
common/hooks: speed up generate-runtime-deps.
Instead of using file(1) to check for ELF files, just read bytes
directly from the file and check if they are the ELF magic bytes.
Should probably be factored out into a common function that can be used
in other places, if necessary.
Also use awk instead of "grep|awk" for some minor speedup.
Diffstat (limited to 'common/hooks/pre-check')
0 files changed, 0 insertions, 0 deletions