summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2007-10-16 14:40:28 +0000
committerBastien Nocera <hadess@src.gnome.org>2007-10-16 14:40:28 +0000
commitd2ddc392c7d80bf6dc728e8c7b6385308b34c8fb (patch)
treed467398e64edd0de4c7c30bc09831d4d181f73a3 /data
parent2f680da91ad76dd29eede8c6ead4528dfccdb54a (diff)
generate nautilus-audio-mime-types.h for use in nautilus itself
2007-10-16 Bastien Nocera <hadess@hadess.net> * data/Makefile.am: * data/mime-type-include.sh: generate nautilus-audio-mime-types.h for use in nautilus itself svn path=/trunk/; revision=4778
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am5
-rwxr-xr-xdata/mime-type-include.sh16
2 files changed, 20 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 96dcbe46..7decc8bf 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -44,10 +44,13 @@ totem.desktop.in: totem.desktop.in.in mime-type-list.txt desktop.sh
$(SHELL) $(srcdir)/desktop.sh $(srcdir)/mime-type-list.txt \
>> $@
-nodist_noinst_HEADERS = totem-mime-types.h
+nodist_noinst_HEADERS = totem-mime-types.h nautilus-audio-mime-types.h
totem-mime-types.h: mime-type-include.sh mime-type-list.txt mime-functions.sh
$(srcdir)/mime-type-include.sh $(srcdir)/mime-type-list.txt \
> $@
+nautilus-audio-mime-types.h: mime-type-include.sh mime-type-list.txt mime-functions.sh
+ $(srcdir)/mime-type-include.sh --nautilus $(srcdir)/mime-type-list.txt \
+ > $@
update-gconf.sh: totem-video-thumbnail.schemas.in
diff --git a/data/mime-type-include.sh b/data/mime-type-include.sh
index 7928c62b..0b827c44 100755
--- a/data/mime-type-include.sh
+++ b/data/mime-type-include.sh
@@ -6,6 +6,22 @@ echo_mime () {
echo "\"$i\","
}
+if [ x"$1" == "x--nautilus" ] ; then
+ get_audio_mimetypes $2;
+
+ echo "/* generated with mime-types-include.sh in the totem module, don't edit or "
+ echo " commit in the nautilus module without filing a bug against totem */"
+
+ echo "static char *audio_mime_types[] = {"
+ for i in $MIMETYPES ; do
+ echo_mime;
+ done
+
+ echo "};"
+
+ exit 0
+fi
+
MIMETYPES=`cat $1`
echo "/* generated with mime-types-include.sh, don't edit */"