]>
git.saurik.com Git - apt.git/blob - vendor/getinfo
2 # small helper to extract information form *.ent files
4 BASEDIR
="$(readlink -f "$(dirname $0)")"
5 INFO="$(readlink -f "${BASEDIR}/current/apt-vendor.ent")"
7 if [ -z "$INFO" ] || [ ! -e "$INFO" ]; then
8 echo >&2 'The current vendor is not valid or not chosen by the buildsystem yet.'
13 grep --max-count=1 "^
<!ENTITY
$1 \"" "${2:-$INFO}" | cut -d'"' -f 2
17 local FIELD="$(getrawfield "$@")"
23 debian-stable-codename)
24 getrawfield 'stable
-codename' "${BASEDIR}/../doc/apt-verbatim.ent"
27 getrawfield 'stable
-codename' "${BASEDIR}/../doc/apt-verbatim.ent"
29 keyring-package|keyring-filename|keyring-master-filename|keyring-removed-filename|keyring-uri)
33 echo >&2 "Unknown data field $1 requested"