summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-07 10:51:27 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-07 10:51:27 +0200
commitcc9e2d7c3bbd90df9a3b87fe7c445517d03102ff (patch)
tree3baf9ec1f360dc1023e356d9d7f3569a043a62b4 /include
parent5f1c309bc7f9924f2506f88cba345dd8b2e09cd8 (diff)
include/mimetypes: Print new mimetypes
Diffstat (limited to 'include')
-rwxr-xr-xinclude/mimetypes12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/mimetypes b/include/mimetypes
index ad4eb79..d20f9c8 100755
--- a/include/mimetypes
+++ b/include/mimetypes
@@ -1,6 +1,6 @@
#!/usr/bin/env zsh
typeset -a audio video image
-typeset c_audio='04;36' c_video='04;32' c_image='04;33'
+. etc/mime-setup
while read mime extensions; do
[[ $mime == audio/* ]] && audio+=(${(s/ /)extensions})
@@ -12,6 +12,16 @@ audio=(${(i)audio})
video=(${(i)video})
image=(${(i)image})
+for mimetype in $audio; {
+ [[ ${mime_audio[(I)$mimetype]} == 0 ]] && echo "mime_audio+=$mimetype"
+}
+for mimetype in $video; {
+ [[ ${mime_video[(I)$mimetype]} == 0 ]] && echo "mime_video+=$mimetype"
+}
+for mimetype in $image; {
+ [[ ${mime_image[(I)$mimetype]} == 0 ]] && echo "mime_image+=$mimetype"
+}
+
echo "mime_audio=($audio)"
echo "mime_video=($video)"
echo "mime_image=($image)"