Posted By

micmath on 02/09/08


unix subversion

Versions (?)

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

 / Published in: Other


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
  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.