Return to Snippet

Revision: 5078
at February 9, 2008 18:14 by micmath


Initial Code
# this affects already existing files
find app/lib/ -type f -name '*.js' -exec svn propset svn:keywords "Id" {}  \; -print

# OR, for files added later, you can edit ~/.subversion/config
[miscellany]
enable-auto-props = yes
[auto-props]
*.js = svn:keywords=Id

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

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

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

Initial Tags
unix

Initial Language
Other