i m using subversion (Xcode) to commit my files , i would like to add my svn info on all my file headers – please let me know is any other script available to do this ?
Like
Node Kind: directory
Schedule: normal
Last Changed Author: karthikeyan
Last Changed Rev: 9
Last Changed Date: 2011-06-21 23:55:20 +0530 (Tue, 21 Jun 2011)
#import "TestController.h"
@implementation TestController
Shell-fu to the rescue…
I don’t know what ‘Node Kind’ and ‘Schedule’ are, but do the following:
Put the following in a shell script, call it
insert_header.shfor argument’s sake:Open a Terminal session.
Make the file executable with
chmod +x insert_header.shand put it in your PATH, or run it with its relative path (see below).Then, run the following command in your source checkout directory (e.g. if you want to change files with extension .cpp):
Run
svn status, and expect to see all the changed files with the following ‘MM’ status code:If you don’t like the changes, revert with
svn revert -R ., otherwisesvn commit -m "+1 for opyate ;-)"PS I tried it with a dummy project, and it ended up looking like this, which is normal: