1#!/bin/sh 2 3which montage > /dev/null 2>&1 || pkgman install imagemagick 4 5tmpf=/tmp/$$_icon_ 6 7for f in data/artwork/icons/*; do 8 [ -d "$f" ] && continue 9 bn="$(basename "$f")" 10 translate "$f" "${tmpf}${bn}.png" 'PNG ' 11 echo "-label" 12 echo "${bn}" 13 echo "${tmpf}${bn}.png" 14done | xargs -d '\n' sh -c 'montage -frame 5 -background "#336699" -geometry +4+4 -font /system/data/fonts/ttfonts/NotoSans-Regular.ttf -pointsize 9 "$@" haiku_icons.png' -- 15 16rm /tmp/$$_icon_* 17