#!/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 ;; debian | ubuntu | whonix) make dpkg ;; opensuse*) make rpm ;; *) ;; esac