Shell-fu to the rescue ...
I do not know what Node Kind 'and' Schedule 'are, but do the following:
Put the following in a shell script, name it insert_header.sh for the argument:
#!/bin/bash FILE=$1 sed '1s:^:\ : 1i\ Node Kind: directory 1i\ Schedule: normal 1i\ Last Changed Author: $Author$ 1i\ Last Changed Rev: $Rev$ 1i\ Last Changed Date: $LastChangedDate$ ' $FILE > $FILE.somerandombackupextension mv $FILE.somerandombackupextension $FILE
Open a terminal session.
Make an executable with chmod +x insert_header.sh and put it in your PATH or run it with its relative path (see below).
Then run the following command in the source code directory (for example, if you want to modify files with the extension .cpp):
find . -name \*.cpp -exec insert_header.sh {} \; -exec svn propset svn:keywords "Author Rev LastChangedDate" {} \;
Run svn status and expect to see all changed files with the following status code "MM":
MM path/to/file1.cpp MM path/to/file2.cpp
If you donβt like the changes, return with svn revert -R . otherwise svn commit -m "+1 for opyate ;-)"
PS I tried this with a dummy project, and in the end it looked like usual:
Node Kind: directory Schedule: normal Last Changed Author: $Author: opyate $ Last Changed Rev: $Rev: 2 $ Last Changed Date: $LastChangedDate: 2011-06-30 23:20:33 +0100 (Thu, 30 Jun 2011) $ ...the rest of my file
source share