mkosi: Clean up old packages from the build directory

This commit is contained in:
Daan De Meyer 2024-07-03 20:20:31 +02:00
parent ce513c6c6c
commit 2f6046f66b
4 changed files with 17 additions and 0 deletions

View file

@ -90,5 +90,10 @@ env --chdir="pkg/$ID" \
PKGEXT=".pkg.tar" \
MESON_EXTRA_CONFIGURE_OPTIONS="$MKOSI_MESON_OPTIONS $MESON_OPTIONS"
(
shopt -s nullglob
rm -f "$BUILDDIR"/*.pkg.tar
)
cp "$OUTPUTDIR"/*.pkg.tar "$PACKAGEDIR"
cp "$OUTPUTDIR"/*.pkg.tar "$BUILDDIR"

View file

@ -113,5 +113,10 @@ CXX_LD="$( ((LLVM)) && echo lld)" \
--noclean \
"pkg/$ID/systemd.spec"
(
shopt -s nullglob
rm -f "$BUILDDIR"/*.rpm
)
cp "$OUTPUTDIR"/*.rpm "$PACKAGEDIR"
cp "$OUTPUTDIR"/*.rpm "$BUILDDIR"

View file

@ -137,6 +137,8 @@ fi
(
shopt -s nullglob
rm -f "$BUILDDIR"/*.deb "$BUILDDIR"/*.ddeb
cp ../*.deb ../*.ddeb "$PACKAGEDIR"
cp ../*.deb ../*.ddeb "$OUTPUTDIR"
cp ../*.deb ../*.ddeb "$BUILDDIR"

View file

@ -132,5 +132,10 @@ if ! build; then
build --noprep --nocheck
fi
(
shopt -s nullglob
rm -f "$BUILDDIR"/*.rpm
)
cp "$OUTPUTDIR"/*.rpm "$PACKAGEDIR"
cp "$OUTPUTDIR"/*.rpm "$BUILDDIR"