Latest tweets from eosgarden

Noxeos - Mixing C++ with C/Objective-C: http://t.co/VS5zeASf
eosgarden - 16.01.2012 / 23:01
FileSytem for iPhone is finally compatible with iOS 5 - update or download it now: http://t.co/yXqCFkC9
eosgarden - 11.01.2012 / 22:22
Noxeos - Warning flags for Clang: http://t.co/iZFQWi6f
eosgarden - 10.01.2012 / 20:36
AutoPurge - Optimize your system memory with a single click: http://t.co/9oTKasSS
eosgarden - 10.01.2012 / 20:24
Manual - Unix man pages at your fingertips: http://t.co/81rZTSeC
eosgarden - 10.01.2012 / 20:12
PropEdit 2.1.0: http://t.co/zJsERSpb
eosgarden - 10.01.2012 / 19:48
@dodyrw NodeJS binary is included in WebStart. GUI is ready, and will be available in the next version (should be released in a few days).
eosgarden - 08.01.2012 / 22:03
@dfeyer Don't know the Percona version (yet)… Is it better than MySQL?
eosgarden - 07.01.2012 / 10:59
PropEdit 2.0 has been released. Now with ACLs support! http://t.co/zJsERSpb
eosgarden - 07.01.2012 / 10:50
PropEdit 2.0 is ready!
eosgarden - 07.01.2012 / 10:07
 
 
 

About

SVN-Utils is a small but useful shell script to simplify some operations on SVN working-copies.
You will find below a list of it's features.
SVN-Utils is realeased under the BSD License. Feel free to use it, and modify it at your convenience.
 
 

Documentation

Table of contents

  1. Features
    1. Automatic SVN keywords
    2. SVN removal
    3. Mac OS X cleanup
    4. Automatic SVN add
  2. Usage

1. Features

1.1. Automatic SVN keywords

SVN-Util can be used to automatically set the «svn:keywords» property on all regular files of a working-copy.
The «svn:keywords» property is used to automatically replace some keywords in your files.
For instance, the «$Id$» keyword that is automatically expanded with the commit's date and author, revision number, etc.
With Subversion, you need to set the list of available keywords on all files. SVN-Util can do this automatically for all the files in a working-copy.
To do this, simply invoke the script with the «-k» or «--keywords» command:
svn-util -k ~/myProject

1.2. SVN removal

Subversion stores informations about a working-copy in hidden directories named «.svn». Such a directory is present in every directory of a working-copy.
SVN-Util can automatically delete all that «.svn» directories in a working-copy, making it a standard, unversioned directory.
This can be useful for instance if you want to copy a working-copy over FTP, or create an archive.
To do this, simply invoke the script with the «-d» or «--delete» command:
svn-util -d ~/myProject

1.3. Mac OS X cleanup

Mac OS X stores the Finder view's settings per directory in hidden files named «.DS_Store».
When manipulating files from the Finder, those files are automatically created in the direcotories you are working in.
It can be very embarassing when using a SVN working-copy, as you will see all that «.DS_Store» files reported as unversioned files.
SVN-Util can clean all the «.DS_Store» files in a working-copy.
To do this, simply invoke the script with the «-c» or «--clean» command:
svn-util -c ~/myProject

1.4. Automatic SVN add

SVN-Util can be used to automatically mark all unversioned files present in working-copy, so they will be added to the repository with the next commit.
To do this, simply invoke the script with the «-a» or «--add» command:
svn-util -a ~/myProject

2. Usage

The script has to be invoked from the command line.
It takes two arguments: a command name and the path to a SVN working-copy.
Please refer to the features list to learn more about the available commands.
For instance:
bash svn-util.sh -k ~/myProject
Note that you can also make the SVN-Util script available like standard Unix commands.
Simply copy it in a directory that's included in your executable path (like /usr/local/bin/), and make sure the executable flag is set.
For instance:
sudo cp svn-util.sh /usr/local/bin/svn-util
sudo chmod 755 /usr/local/bin/svn-util
You'll then be able to call the script as a normal executable:
svn-util -k ~/myProject