]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use --only-changed meson option when installing
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 19 Dec 2020 14:25:41 +0000 (15:25 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 19 Dec 2020 16:16:07 +0000 (16:16 +0000)
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.

mkosi.build

index f170f9b95770e1b60c4765aba5531ae9296fbdb3..5da5207fb5ea6808d77d7824ac4a785c7c08acf6 100755 (executable)
@@ -98,9 +98,9 @@ fi
 
 # Ubuntu Focal is stuck with meson 0.53.0.
 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
-        meson install -C "$BUILDDIR" --no-rebuild
+        meson install -C "$BUILDDIR" --no-rebuild --only-changed
 fi
 
 mkdir -p "$DESTDIR"/etc