New mimetype for the CMake source code files. I attach here the needed information.
Created attachment 15983 [details] xml file for the cmake mimetype.
Please attach a patch (not an xml file) and provide some example files to add to the test suite.
Created attachment 15986 [details] [review] Patch for the database
I don't understand what kind of files are you asking for... Any example?
*.cmake files, so we can add those to the database. Is there any magic available to recognise CMake files from data?
No, there is no real magic that can be used to recognize them.
No, i don't think that there is any magic... The only way you can do it is by checking the filename, do you still need the files?
Yes please.
Created attachment 15987 [details] Some cmake files
(In reply to comment #3) > Created an attachment (id=15986) [details] > Patch for the database That's not a patch against shared-mime-info, it's against some random KDE module.
You are right, could you point me out what is the correct database?
HACKING file has all the information: http://webcvs.freedesktop.org/mime/shared-mime-info/HACKING?view=markup
Created attachment 16014 [details] [review] Proposed text/x-cmake
Created attachment 16015 [details] [review] complete changes This patch includes the mimetype, and a sample file for the test suite. Bastien, if it's ok for you, may I commit it?
(In reply to comment #14) > Created an attachment (id=16015) [details] > complete changes > > This patch includes the mimetype, and a sample file for the test suite. > > Bastien, if it's ok for you, may I commit it? Go for it.
Fixed in CVS. * freedesktop.org.xml.in: * tests/test.cmake: * tests/list: Add mime-type for CMake scripts, patch from Aleix Pol <aleixpol@gmail.com> (Closes: #15561)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.