From: <mar...@us...> - 2008-12-19 13:24:00
|
Revision: 3637 http://synce.svn.sourceforge.net/synce/?rev=3637&view=rev Author: mark_ellis Date: 2008-12-19 13:23:57 +0000 (Fri, 19 Dec 2008) Log Message: ----------- added mime type description for Pocket Word & Excel Modified Paths: -------------- trunk/gnomevfs/ChangeLog trunk/gnomevfs/Makefile.am trunk/gnomevfs/configure.ac.in Added Paths: ----------- trunk/gnomevfs/data/ trunk/gnomevfs/data/Makefile.am trunk/gnomevfs/data/synce-gnomevfs.xml Modified: trunk/gnomevfs/ChangeLog =================================================================== --- trunk/gnomevfs/ChangeLog 2008-12-19 12:32:13 UTC (rev 3636) +++ trunk/gnomevfs/ChangeLog 2008-12-19 13:23:57 UTC (rev 3637) @@ -1,3 +1,7 @@ +2008-12-19 Mark Ellis <ma...@mp...> + + * added mime type description for Pocket Word & Excel + 2008-10-28 Mark Ellis <ma...@mp...> * src/libsyncevfs.c - use CeGetDiskFreeSpaceEx() to obtain Modified: trunk/gnomevfs/Makefile.am =================================================================== --- trunk/gnomevfs/Makefile.am 2008-12-19 12:32:13 UTC (rev 3636) +++ trunk/gnomevfs/Makefile.am 2008-12-19 13:23:57 UTC (rev 3637) @@ -1,3 +1,3 @@ -SUBDIRS = pixmaps script src man +SUBDIRS = pixmaps script src man data EXTRA_DIST = LICENSE Modified: trunk/gnomevfs/configure.ac.in =================================================================== --- trunk/gnomevfs/configure.ac.in 2008-12-19 12:32:13 UTC (rev 3636) +++ trunk/gnomevfs/configure.ac.in 2008-12-19 13:23:57 UTC (rev 3637) @@ -34,6 +34,12 @@ PKG_CHECK_MODULES(GMODULE, glib-2.0 gmodule-2.0) fi +AC_ARG_ENABLE(update-mime-database, + AC_HELP_STRING([--disable-update-mime-database], + [do not run the update-mime-database utility (mostly useful for package maintainers) ])) +AM_CONDITIONAL(UPDATE_MIME_DATABASE, test "$enable_update_mime_database" != "no") + + dnl dnl debugging output dnl @@ -56,4 +62,5 @@ script/Makefile src/Makefile man/Makefile + data/Makefile ]) Added: trunk/gnomevfs/data/Makefile.am =================================================================== --- trunk/gnomevfs/data/Makefile.am (rev 0) +++ trunk/gnomevfs/data/Makefile.am 2008-12-19 13:23:57 UTC (rev 3637) @@ -0,0 +1,19 @@ +# The new mime system + +mimedir = $(datadir)/mime/packages +mime_DATA = synce-gnomevfs.xml + +if UPDATE_MIME_DATABASE +install-data-local: + mkdir -p $(mimedir) + update-mime-database $(datadir)/mime/ + +uninstall-local: + update-mime-database $(datadir)/mime/ +else +install-data-local: + +uninstall-local: +endif + +EXTRA_DIST = $(mime_DATA) Added: trunk/gnomevfs/data/synce-gnomevfs.xml =================================================================== --- trunk/gnomevfs/data/synce-gnomevfs.xml (rev 0) +++ trunk/gnomevfs/data/synce-gnomevfs.xml 2008-12-19 13:23:57 UTC (rev 3637) @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + + <mime-type type="application/x-pocket-excel"> + <comment>Pocket Excel spreadsheet</comment> + <glob pattern="*.pxl"/> + </mime-type> + + <mime-type type="application/x-pocket-word"> + <comment>Pocket Word document</comment> + <magic priority="50"> + <match value="{\pwi" type="string" offset="0"/> + </magic> + <glob pattern="*.psw"/> + <glob pattern="*.pwi"/> + </mime-type> + +</mime-info> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |