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.
This commit is contained in:
Jehan 2022-01-31 21:50:21 +01:00
parent c872dcbf20
commit 92a919aee1
3 changed files with 7 additions and 2 deletions

View File

@ -46,7 +46,6 @@ scalable_images = \
scalable/help-about.svg \ scalable/help-about.svg \
scalable/list-add.svg \ scalable/list-add.svg \
scalable/list-remove.svg \ scalable/list-remove.svg \
\
scalable/media-playback-pause.svg \ scalable/media-playback-pause.svg \
scalable/media-playback-start.svg \ scalable/media-playback-start.svg \
scalable/media-record.svg \ scalable/media-record.svg \

View File

@ -46,7 +46,6 @@ scalable_images = \
scalable/help-about-symbolic.svg \ scalable/help-about-symbolic.svg \
scalable/list-add-symbolic.svg \ scalable/list-add-symbolic.svg \
scalable/list-remove-symbolic.svg \ scalable/list-remove-symbolic.svg \
\
scalable/media-playback-pause-symbolic.svg \ scalable/media-playback-pause-symbolic.svg \
scalable/media-playback-start-symbolic.svg \ scalable/media-playback-start-symbolic.svg \
scalable/media-record-symbolic.svg \ scalable/media-record-symbolic.svg \

View File

@ -226,3 +226,10 @@ if __name__ == "__main__":
for line in f: for line in f:
colorf.write(line) colorf.write(line)
symbolicf.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)