summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2005-12-12 16:59:19 +0000
committerAlexander Larsson <alexl@src.gnome.org>2005-12-12 16:59:19 +0000
commit671e4bdaa4d07b039015bedfcb5d42026e5d099e (patch)
tree7e983d1089740a57bc6e8848219aa3032c4e9056 /data
parentf03608b0904ed20850e7ba49d397a7d41330a298 (diff)
downloadnautilus-671e4bdaa4d07b039015bedfcb5d42026e5d099e.tar.gz
--- Merged the nautilus-search2 branch ---
Diffstat (limited to 'data')
-rw-r--r--data/.cvsignore1
-rw-r--r--data/Makefile.am20
-rw-r--r--data/nautilus.xml.in8
3 files changed, 29 insertions, 0 deletions
diff --git a/data/.cvsignore b/data/.cvsignore
index 07c9a1a1b..60fc27a7c 100644
--- a/data/.cvsignore
+++ b/data/.cvsignore
@@ -2,3 +2,4 @@ Makefile
Makefile.in
*.desktop
*.directory
+nautilus.xml
diff --git a/data/Makefile.am b/data/Makefile.am
index 200744891..6fea76049 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,5 +1,12 @@
NULL=
+xml_in_files = nautilus.xml.in
+xml_files = $(xml_in_files:.xml.in=.xml)
+@INTLTOOL_XML_RULE@
+
+mimedir = $(datadir)/mime/packages
+mime_DATA = $(xml_files)
+
nautilusdatadir = $(datadir)/nautilus
nautilusdata_DATA = \
@@ -9,8 +16,21 @@ nautilusdata_DATA = \
$(NULL)
EXTRA_DIST = $(nautilusdata_DATA) \
+ $(xml_in_files) \
$(NULL)
+CLEANFILES = $(xml_files)
+
SUBDIRS = \
patterns \
$(NULL)
+
+install-data-hook:
+if ENABLE_UPDATE_MIMEDB
+ $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime"
+endif
+
+uninstall-hook:
+if ENABLE_UPDATE_MIMEDB
+ $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime"
+endif
diff --git a/data/nautilus.xml.in b/data/nautilus.xml.in
new file mode 100644
index 000000000..744d0d481
--- /dev/null
+++ b/data/nautilus.xml.in
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-gnome-saved-search">
+ <sub-class-of type="text/xml"/>
+ <_comment>Saved search</_comment>
+ <glob pattern="*.savedSearch"/>
+ </mime-type>
+</mime-info>