SVN auto add and delete

Posted by Dan Sosedoff on January 16, 2009

Bored of manually delete and add files to project? Ok, me too :) So, i decided to make a simple command to work with command “svn commit”. All-in-one solution is:

#!/bin/bash
 
echo "processing files to add..."
svn status | grep “^?” | sed -r ’s/^\?[ ]+//| xargs -r svn add
 
echo "processing files to delete..."
svn status | grep “^!| sed -r ’s/^\![ ]+//| xargs -r svn delete
 
echo "processing commit..."
svn commit

Download bash script – http://files.sosedoff.com/62c99246/

Trackbacks

Trackbacks are closed.

Comments

Comments are closed.