Author: nickboldt
Date: 2010-04-27 11:14:30 -0400 (Tue, 27 Apr 2010)
New Revision: 21739
Added:
branches/modular_build/svnignore.sh
Log:
new svnignore util script
Added: branches/modular_build/svnignore.sh
===================================================================
--- branches/modular_build/svnignore.sh (rev 0)
+++ branches/modular_build/svnignore.sh 2010-04-27 15:14:30 UTC (rev 21739)
@@ -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: branches/modular_build/svnignore.sh
___________________________________________________________________
Name: svn:executable
+ *
Show replies by date