/usr/bin/jdg-debc is in jenkins-debian-glue 0.18.4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
cat <<EOF
┌──────────────────────────────────────────────────────────────────────────────┐
│ Displaying content of generated Debian packages. │
└──────────────────────────────────────────────────────────────────────────────┘
EOF
if ! which debc >/dev/null 2>&1 ; then
echo "Error: debc executable not available, please install the devscripts Debian package." >&2
exit 1
fi
CHANGES=$(find . -maxdepth 1 -name \*.changes ! -name \*_source.changes)
HOST_ARCH="$(dpkg-architecture -qDEB_HOST_ARCH)"
if [ -n "${HOST_ARCH}" ] && [ -n "${architecture}" ] && [ "${architecture}" != "${HOST_ARCH}" ] ; then
arch="-a ${architecture}"
fi
if [ -n "$CHANGES" ] >/dev/null 2>&1 ; then
for file in $CHANGES ; do
debc ${arch} "$file"
done
elif ls ./*.deb >/dev/null 2>&1 ; then
debc ${arch} ./*.deb
else
echo "No changes and deb files found in $(pwd), ignoring."
fi
|