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


/ Published in: Other
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.