Posted By

micmath on 02/09/08


Tagged

unix subversion


Versions (?)

Use Unix 'find' to propset the svn Id on many files at once


 / Published in: Other
 

URL: http://svnbook.red-bean.com/en/1.1/ch07s02.html

There may be an easier way to do this, but if there is I can't find it. This sets the svn property $Id$ of every javaScript file in the app/lib directory.

  1. # this affects already existing files
  2. find app/lib/ -type f -name '*.js' -exec svn propset svn:keywords "Id" {} \; -print
  3.  
  4. # OR, for files added later, you can edit ~/.subversion/config
  5. [miscellany]
  6. enable-auto-props = yes
  7. [auto-props]
  8. *.js = svn:keywords=Id

Report this snippet  

You need to login to post a comment.