summaryrefslogtreecommitdiffstats
path: root/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.prepare
blob: cec81ec1d5fadc73c50958fccd68726bb107963a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e

if [[ "$1" == "build" ]]; then
    exit 0
fi

if [[ ! -d "pkg/$PKG_SUBDIR/debian" ]]; then
    echo "deb rules not found at pkg/$PKG_SUBDIR/debian, run mkosi once with -ff to make sure the rules are cloned" >&2
    exit 1
fi

cd "pkg/$PKG_SUBDIR"
DEB_BUILD_PROFILES="pkg.systemd.upstream" apt-get build-dep .