File: runtime-recommends.sh

package info (click to toggle)
waypipe 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,288 kB
  • sloc: ansic: 15,809; xml: 9,436; python: 1,726; sh: 248; makefile: 28
file content (13 lines) | stat: -rwxr-xr-x 269 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e
set -u

recommends=""
for lib in "$@"
do
    rec=$(dpkg-query -S $(readlink -f /usr/lib/${DEB_HOST_MULTIARCH}/${lib}) | cut -d':' -f1)
    recommends="${recommends}${rec}, "
done

echo "waypipe:Recommends=${recommends%, }" >> debian/waypipe.substvars