Random thoughts and notes

Autoadd new files into a Subversion repository

#!/bin/bash

files=$(svn status | grep ^\? 2> /dev/null | wc -l)
if [ "$files" != "0" ] 
then
  svn status | grep ^\? | cut -c8- | xargs svn add
  svn -m "Autoadding new files" commit
fi

Comments