File: gen_substvars_dev

package info (click to toggle)
ppp 2.5.2-1%2B1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,472 kB
  • sloc: ansic: 40,721; sh: 5,356; perl: 458; makefile: 453
file content (17 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

if [ $# -ne 2 ]; then
	echo "Usage: $0 <upstream> <abi>" >&2
	exit 1
fi

UPSTREAM=$1
ABI=$2
ABI_NEXT=$(($ABI + 1))
PKG="ppp"

cat <<EOF
${PKG}:Depends=${PKG} (>= ${UPSTREAM}-${ABI}+~), ${PKG} (<< ${UPSTREAM}-${ABI_NEXT}~)
${PKG}:Breaks=${PKG} (<< ${UPSTREAM}-${ABI}+~), ${PKG} (>= ${UPSTREAM}-${ABI_NEXT}~)
${PKG}:PluginDir=/usr/lib/pppd/${UPSTREAM}
EOF