aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2015-08-08 01:23:29 +0200
committerMax Christian Pohle2015-08-08 01:23:29 +0200
commitdfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2 (patch)
tree21c6967702651547fb9ae183632ddaaae1be3b5d
parent2b874f70c132f2da183f132c01ca9aa1ab8086e6 (diff)
downloadicons-dfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2.tar.bz2
icons-dfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2.zip
added script to automatically generate icons for mimetypes
-rwxr-xr-xscalable/mimetypes/generate.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scalable/mimetypes/generate.sh b/scalable/mimetypes/generate.sh
new file mode 100755
index 0000000..d0c19c5
--- /dev/null
+++ b/scalable/mimetypes/generate.sh
@@ -0,0 +1,8 @@
1IFS=':'
2while read A B
3do
4 FILE=${A/\//-}
5 TEXT=${B/\*\./}
6 printf "%s ---- %s\n" $FILE $TEXT
7 convert text-x-generic.png -gravity center -pointsize 70 -stroke '#444' -strokewidth 2 -annotate -15 "$TEXT" -fill '#ff0' -annotate -15 "$TEXT" output/$FILE.png
8done < /usr/share/mime/globs
..