[haiku-commits] haiku: hrev49958 - 3rdparty/mmu_man/scripts

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 1 Jan 2016 05:56:58 +0100 (CET)

hrev49958 adds 1 changeset to branch 'master'
old head: 805569fcf32cc229cf7ff69099514d07610f96ef
new head: 0fe022fd0d6d600863555f5a556ab5a5273d20e0
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=0fe022fd0d6d+%5E805569fcf32c

----------------------------------------------------------------------------

0fe022fd0d6d: Add a little script to generate a montage of all icons

This needs the 'montage' command from ImageMagick.
(it will install it with pkgman if missing)

It first uses 'translate' to convert Icon-O-Matic files to PNG,
then makes a montage with the icon titles.

Run it from the top source folder under Haiku, it might take a while.

[ François Revol <revol@xxxxxxx> ]

----------------------------------------------------------------------------

Revision: hrev49958
Commit: 0fe022fd0d6d600863555f5a556ab5a5273d20e0
URL: http://cgit.haiku-os.org/haiku/commit/?id=0fe022fd0d6d
Author: François Revol <revol@xxxxxxx>
Date: Fri Jan 1 04:53:38 2016 UTC

----------------------------------------------------------------------------

1 file changed, 16 insertions(+)
3rdparty/mmu_man/scripts/generate_icon_table.sh | 16 ++++++++++++++++

----------------------------------------------------------------------------

diff --git a/3rdparty/mmu_man/scripts/generate_icon_table.sh
b/3rdparty/mmu_man/scripts/generate_icon_table.sh
new file mode 100755
index 0000000..4aec7fa
--- /dev/null
+++ b/3rdparty/mmu_man/scripts/generate_icon_table.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+which montage > /dev/null 2>&1 || pkgman install imagemagick
+
+tmpf=/tmp/$$_icon_
+
+for f in data/artwork/icons/*; do
+ [ -d "$f" ] && continue
+ bn="$(basename "$f")"
+ translate "$f" "${tmpf}${bn}.png" 'PNG '
+ echo "-label"
+ echo "${bn}"
+ echo "${tmpf}${bn}.png"
+done | xargs -d '\n' sh -c 'montage -frame 5 -background "#336699" -geometry
+4+4 -font /system/data/fonts/ttfonts/DejaVuSansCondensed.ttf -pointsize 8 "$@"
haiku_icons.png' --
+
+rm /tmp/$$_icon_*


Other related posts:

  • » [haiku-commits] haiku: hrev49958 - 3rdparty/mmu_man/scripts - revol