apparmor.d/tests/packer/src/aa-update

26 lines
411 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -eu
export BUILDDIR=/tmp/build/ PKGDEST=/tmp/pkg
# shellcheck source=/dev/null
_lsb_release() {
. /etc/os-release || exit 1
echo "$ID"
}
DISTRIBUTION="$(_lsb_release)"
cd "$HOME/Projects/apparmor.d"
case "$DISTRIBUTION" in
arch)
make pkg
;;
2023-11-19 22:04:58 +01:00
debian | ubuntu | whonix)
2023-12-05 21:49:16 +01:00
sudo rm -rf debian/.debhelper/
2023-11-19 22:04:58 +01:00
make dpkg
sudo rm -rf debian/.debhelper/
;;
2023-12-05 21:49:16 +01:00
opensuse*) make rpm ;;
*) ;;
esac