Editing Mime-types

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 6: Line 6:
 
Sean provides a copy of his Subversion configuration that includes property settings for many file types.  You can download and install it with this:
 
Sean provides a copy of his Subversion configuration that includes property settings for many file types.  You can download and install it with this:
  
  '''curl https://brlcad.org/~sean/subversion.config > ~/.subversion/config'''
+
  '''curl http://brlcad.org/~sean/subversion.config > ~/.subversion/config'''
  
 
Once installed, run ''svn revert'' on your new file and then add it again.  The properties should be set if the config file is installed properly and it's a recognized file type.
 
Once installed, run ''svn revert'' on your new file and then add it again.  The properties should be set if the config file is installed properly and it's a recognized file type.
Line 47: Line 47:
 
  [sean@bz (Wed May 28 13:31:55) brlcad]$ svn commit some_new_file.c
 
  [sean@bz (Wed May 28 13:31:55) brlcad]$ svn commit some_new_file.c
 
  ... no mime type error ...
 
  ... no mime type error ...
 
That said, if one wanted to manually add or change a file's properties:
 
[sean@bz (Wed May 29 13:50:51) brlcad]$ svn add some_file.odd
 
A        some_file.odd
 
[sean@bz (Wed May 29 13:51:32) brlcad]$ svn propset svn:mime-type text/plain some_file.odd
 
[sean@bz (Wed May 29 13:52:16) brlcad]$ svn propset svn:eol-style native some_file.odd
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)