#!/bin/bash
TMPFILE=.newcvsignore
rm -f ${TMPFILE}
# add whatever already is ignored
for i in `svn propget svn:ignore`; do
echo "Adding $i"
echo $i >> ${TMPFILE}
done
# add new things to ignore
for i in $*; do
echo "Adding $i"
echo $i >> ${TMPFILE}
done
svn propset svn:ignore -F ${TMPFILE} .
rm -f ${TMPFILE}
There might be an easier trick to do this, but now at least I have this nice one-liner:
svnignore somefile
4 comments:
Something like this, and many many more cool scripts can also be found in KDE svn under this dir (in svn) ssh://svn.kde.org/home/kde/trunk/KDE/kdesdk/scripts
Cheers!
ThomasZ
why not svn propedit?
More SVN tricks + scripts here:
http://www.easysw.com/~mike/svn-cheat.html
Pier, great tip on svn propedit! Stupid of me to have missed that option!
Post a Comment