File: mksubstvars

package info (click to toggle)
ruby-ethon 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 396 kB
  • sloc: ruby: 2,108; sh: 9; makefile: 8
file content (13 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -eu

name="$1"
library="$2"
pkg="${3:-}"
if [ -z "${pkg}"]; then
	pkg=$(dh_listpackages | head -1)
fi

lib=$(dpkg -S "${library}" | head -1 | cut -d: -f1)
echo "${name}:Depends=${lib}" >> "debian/${pkg}.substvars"