mkosi: Use --only-changed meson option when installing
Recently, mkosi gained support for specifying an --install-directory option to save the contents of the install directory between bulids. By enabling the --only-changed meson install option, meson won't overwrite the contents of files that haven't changed since the last build when using --install-directory.
This commit is contained in:
parent
1431b2f701
commit
2234c6a094
|
@ -98,9 +98,9 @@ fi
|
||||||
|
|
||||||
# Ubuntu Focal is stuck with meson 0.53.0.
|
# Ubuntu Focal is stuck with meson 0.53.0.
|
||||||
if [ "$(meson -v | cut -d . -f 2)" -gt 53 ] ; then
|
if [ "$(meson -v | cut -d . -f 2)" -gt 53 ] ; then
|
||||||
meson install -C "$BUILDDIR" --quiet --no-rebuild
|
meson install -C "$BUILDDIR" --quiet --no-rebuild --only-changed
|
||||||
else
|
else
|
||||||
meson install -C "$BUILDDIR" --no-rebuild
|
meson install -C "$BUILDDIR" --no-rebuild --only-changed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$DESTDIR"/etc
|
mkdir -p "$DESTDIR"/etc
|
||||||
|
|
Loading…
Reference in a new issue