| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | makefile=$(realpathscip-shell system . . realpath. debian/tests/Makefile.test) |
| 4 | scanner=test/frei0r-meta |
| 5 | |
| 6 | #PLUGINDIR=/usr/lib/x86_64-linux-gnu/frei0r-1 |
| 7 | : "${DEB_HOST_MULTIARCH:=$(dpkg-architecturescip-shell system . . dpkg-architecture. -qDEB_HOST_MULTIARCH)}" |
| 8 | |
| 9 | makescip-shell system . . make. -C test -f "${makefile}" \ |
| 10 | frei0r-meta |
| 11 | |
| 12 | |
| 13 | checkdirsscip-shell shell shell-project 0.0.0 checkdirs().() { |
| 14 | for d in "$@"; do |
| 15 | if testscip-shell system . . test. -d "$d"; then echoscip-shell system . . echo. "$d"; fi |
| 16 | done |
| 17 | } |
| 18 | |
| 19 | scanmescip-shell shell shell-project 0.0.0 scanme().() { |
| 20 | findscip-shell system . . find. "$@" \ |
| 21 | -type f -name '*.so' -exec "${scanner}" {} ";" |
| 22 | } |
| 23 | |
| 24 | if [scip-shell system . . `[`. "$#" -gt 0 ]; then |
| 25 | scanmescip-shell shell shell-project 0.0.0 scanme(). "$@" |
| 26 | else |
| 27 | findscip-shell system . . find. $(checkdirsscip-shell shell shell-project 0.0.0 checkdirs(). "/usr/lib/${DEB_HOST_MULTIARCH}/frei0r-1" /usr/lib/frei0rscip-shell filesystem . . `/usr/lib/frei0r`. ) \ |
| 28 | -type f -name '*.so' -exec "${scanner}" {} ";" |
| 29 | fi |