File: genbuildusing.sh

package info (click to toggle)
python-pip 18.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,564 kB
  • sloc: python: 67,021; sh: 77; makefile: 68
file content (9 lines) | stat: -rwxr-xr-x 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh

pydeps=$(grep -o 'dirtbike.*' debian/rules | cut -d' ' -f 2)
debdeps=$(for pkg in $pydeps
do
    dpkg -S /usr/lib/python3/dist-packages/$pkg* 2>/dev/null 2>/dev/null | cut -d: -f1
done)

echo "pip:Built-Using="$(dpkg-query -f '${source:Package} (= ${source:Version}),\n' -W $debdeps | sort)