[tracker] tracker-extract: Added rule for source code files for nfo:SourceCode type



commit ec4f8ecc3d1a56b20b4ecadff686bb68aa29179a
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Aug 21 12:36:36 2014 +0100

    tracker-extract: Added rule for source code files for nfo:SourceCode type

 src/tracker-extract/15-source-code.rule |    4 ++++
 src/tracker-extract/Makefile.am         |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/15-source-code.rule b/src/tracker-extract/15-source-code.rule
new file mode 100644
index 0000000..60cde8b
--- /dev/null
+++ b/src/tracker-extract/15-source-code.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+ModulePath=libextract-text.so
+MimeTypes=text/x-csrc;text/x-c++src;text/x-chdr;text/x-vala;text/x-java;application/javascript;application/x-php;text/x-python;application/x-perl;application/x-shellscript;text/x-fortran;text/x-pascal;
+FallbackRdfTypes=nfo:SourceCode;nfo:PlainTextDocument;
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index 6007968..bf21626 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -43,6 +43,7 @@ rules_files = \
        11-msoffice-xml.rule \
        15-gstreamer-guess.rule \
        15-playlist.rule \
+       15-source-code.rule \
        90-gstreamer-image-generic.rule \
        90-gstreamer-audio-generic.rule \
        90-gstreamer-video-generic.rule \
@@ -168,7 +169,7 @@ endif
 
 if HAVE_TEXT
 extractmodules_LTLIBRARIES += libextract-text.la
-rules_DATA += 90-text-generic.rule
+rules_DATA += 15-source-code.rule 90-text-generic.rule
 endif
 
 if HAVE_ICON


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]