Automatically add all new files in the current dir.

#!/bin/bash

if [ ! "$1" ]
then
1='.'
fi

echo "Processing $1"
svn add $1 `svn st $1 | grep '^?.*' | tr -d '? ' | sort -n | tr '
' ' '`

source

Leave a Reply