d/shuffle-binaries: Fix binary shuffling script for cross-building
authorElliott Mitchell <ehem+debian@m5p.com>
Fri, 17 Jul 2020 06:37:42 +0000 (23:37 -0700)
committerHans van Kranenburg <hans@knorrie.org>
Sun, 28 Feb 2021 18:53:12 +0000 (19:53 +0100)
commitc17e5a61a259140f2bf662f16f8d11b74db61a69
tree6a8284cdeb6f0957bdccb9f8c704f901ba2086ab
parentd16265b976616defd6499ae943575b258406666c
d/shuffle-binaries: Fix binary shuffling script for cross-building

`ldd` doesn't work with cross-builds, so use `file` to detect scripts
and `strings | grep` for identifying linked libraries.  Even though
debhelper depends on file, make the requirement explicit.

Heavily simplify script inner loop.  While the core of that inner loop
was often executed only once, it is best to shrink inner loops.

Signed-off-by: Elliott Mitchell <ehem+debian@m5p.com>
Acked-by: Hans van Kranenburg <hans@knorrie.org>
debian/control
debian/shuffle-binaries