#!/bin/sh
# svn-ignore-all
# usage:# 1. run svn status to see what is going on at each step# 2. add or commit all files that you DO want to have in svn# 3. remove any random files that you don't want to svn:ignore# 4. run this script to svn:ignore everything marked '?' in output of `svn status`
svn status |grep '^?' |sed 's/^? *//' |while read f; dod=`dirname "$f"`b=`basename "$f"`ignore=`svn propget svn:ignore "$d"`if [ -n "$ignore" ]; thenignore="$ignore"fiignore="$ignore$b"svn propset svn:ignore "$ignore" "$d"done