[23049] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r22712 - trunk/debathena/scripts

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon Jan 28 12:30:19 2008

Date: Mon, 28 Jan 2008 12:29:49 -0500 (EST)
From: ghudson@MIT.EDU
Message-Id: <200801281729.MAA02675@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-01-28 12:29:48 -0500 (Mon, 28 Jan 2008)
New Revision: 22712

Modified:
   trunk/debathena/scripts/dasource
Log:
* debathena/scripts/dasource: If updating an existing checkout, clean
  out any changed or stray files so that the orig tarball reflects
  what is in the repository.


Modified: trunk/debathena/scripts/dasource
===================================================================
--- trunk/debathena/scripts/dasource	2008-01-27 22:07:52 UTC (rev 22711)
+++ trunk/debathena/scripts/dasource	2008-01-28 17:29:48 UTC (rev 22712)
@@ -48,8 +48,9 @@
     die "More than one checkout under $pkgname!"
   elif [ -d $pkgname/$pkgname-* ]; then
     dir=$(echo $pkgname/$pkgname-*)
-    echo "Updating $dir"
-    (cd $dir && svn update)
+    echo "Updating and cleaning $dir"
+    (cd $dir && svn update && svn revert -R . &&
+     svn st | awk '/^?/ {print $2}' | xargs rm -vrf)
   else
     dir=$pkgname/$pkgname
     echo "Checking out $repo/$pkgpath into $dir"


home help back first fref pref prev next nref lref last post