Skip to content

Commit d54b564

Browse files
authored
boulder: Add %gtk_update_icon_cache action macro
Most icon themes benefit from having their icon cache pre-generated at build time. The invocation for doing so follows a distinct pattern, hence this macro could perhaps be gainfully used as a simpler substitution. Signed-off-by: Rune Morling <ermo@serpentos.com>
1 parent baaea9a commit d54b564

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

boulder/data/macros/actions/misc.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
actions:
22

3+
- gtk_update_icon_cache:
4+
description: Pregenerate icon cache at build time
5+
example:
6+
%gtk_update_icon_cache
7+
command: |
8+
for i in %(installroot)%(datadir)/icons/*/; do
9+
gtk-update-icon-cache -f $i
10+
done
11+
312
- install_bin:
413
description: Install files to %(bindir)
514
example: |

0 commit comments

Comments
 (0)