[gimp] icons, tools: touch the meson.build files when regenerating icon list.



commit 92a919aee128ee9c360859c7fcf1d2c345a40dbe
Author: Jehan <jehan girinstud io>
Date:   Mon Jan 31 21:50:21 2022 +0100

    icons, tools: touch the meson.build files when regenerating icon list.
    
    Even though we only generate makefiles, we actually want to make meson
    aware of the list change because it continues using the file list from
    the previous configuration. We do this by "touching" the meson.build
    files, i.e. editing their access time.
    
    Also rebuild the icon-list as there are small changes forgotten.

 icons/Color/icon-list.mk         | 1 -
 icons/Symbolic/icon-list.mk      | 1 -
 tools/generate-icon-makefiles.py | 7 +++++++
 3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/icons/Color/icon-list.mk b/icons/Color/icon-list.mk
index 2ab8120d05..1f65fa1e21 100644
--- a/icons/Color/icon-list.mk
+++ b/icons/Color/icon-list.mk
@@ -46,7 +46,6 @@ scalable_images = \
        scalable/help-about.svg                                 \
        scalable/list-add.svg                                   \
        scalable/list-remove.svg                                \
-       \
        scalable/media-playback-pause.svg                       \
        scalable/media-playback-start.svg                       \
        scalable/media-record.svg                               \
diff --git a/icons/Symbolic/icon-list.mk b/icons/Symbolic/icon-list.mk
index 6bb45ef941..b765090a25 100644
--- a/icons/Symbolic/icon-list.mk
+++ b/icons/Symbolic/icon-list.mk
@@ -46,7 +46,6 @@ scalable_images = \
        scalable/help-about-symbolic.svg                                        \
        scalable/list-add-symbolic.svg                                          \
        scalable/list-remove-symbolic.svg                                       \
-       \
        scalable/media-playback-pause-symbolic.svg                              \
        scalable/media-playback-start-symbolic.svg                              \
        scalable/media-record-symbolic.svg                                      \
diff --git a/tools/generate-icon-makefiles.py b/tools/generate-icon-makefiles.py
index a4e3e3887c..ac8d728448 100755
--- a/tools/generate-icon-makefiles.py
+++ b/tools/generate-icon-makefiles.py
@@ -226,3 +226,10 @@ if __name__ == "__main__":
       for line in f:
         colorf.write(line)
         symbolicf.write(line)
+
+  # Touch the 2 meson.build to force-trigger their re-processing (hence
+  # re-configuration) at next build. Otherwise even with image list
+  # changed, meson might not see it as it uses the list from the last
+  # configuration.
+  os.utime(os.path.join(icons_dir, 'Color', 'meson.build'), times=None)
+  os.utime(os.path.join(icons_dir, 'Symbolic', 'meson.build'), times=None)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]