Author: nickboldt
Date: 2010-04-27 11:14:18 -0400 (Tue, 27 Apr 2010)
New Revision: 21738
Added:
trunk/svnignore.sh
Log:
new svnignore util script
Added: trunk/svnignore.sh
===================================================================
--- trunk/svnignore.sh (rev 0)
+++ trunk/svnignore.sh 2010-04-27 15:14:18 UTC (rev 21738)
@@ -0,0 +1,32 @@
+#!/bin/bash
+tmpfile=/tmp/svn.ignore.txt
+echo "target
+buildlog.latest.txt
+bin
+build
+*.class
+" > $tmpfile
+
+dir="."; if [[ $1 ]]; then dir=$1; fi
+
+for p in com org net; do
+ for f in $(find $dir -mindepth 2 -type d -name "${p}.*"); do
+ pushd $f 2>&1 >/dev/null
+ echo $f
+ svn up --accept 'theirs-full'
+ svn propset svn:ignore --file $tmpfile .
+ popd 2>&1 >/dev/null
+ echo ""
+ done
+done
+rm -fr $tmpfile
+svn diff $dir
+
+echo "Pending changes:"
+svn stat $dir
+
+echo ""
+echo "To commit changes, type:
+ cd $dir; svn ci -m \"svn:ignore\""
+echo ""
+
Property changes on: trunk/svnignore.sh
___________________________________________________________________
Name: svn:executable
+ *
Show replies by date