[25603] in Source-Commits
/svn/athena r25116 - trunk/debathena/scripts
daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Fri Apr 29 18:18:22 2011
Date: Fri, 29 Apr 2011 18:18:16 -0400
From: Geoffrey Thomas <geofft@MIT.EDU>
Message-Id: <201104292218.p3TMIGt4006089@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: geofft
Date: 2011-04-29 18:18:16 -0400 (Fri, 29 Apr 2011)
New Revision: 25116
Added:
trunk/debathena/scripts/daschroot
Log:
Add 'daschroot', which adds Debathena sources.list entries automatically
Added: trunk/debathena/scripts/daschroot
===================================================================
--- trunk/debathena/scripts/daschroot (rev 0)
+++ trunk/debathena/scripts/daschroot 2011-04-29 22:18:16 UTC (rev 25116)
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# Gives you an interactive shell with Debathena repositories configured
+
+chroot=$1
+if [ -z "$chroot" ]; then
+ echo "usage: daschroot <chroot name>"
+ exit 1
+fi
+shift
+
+if schroot -c "$chroot" -i >/dev/null; then
+ exit $?
+fi
+
+session=$(schroot -c "$chroot" -b)
+schroot -c "$session" -r -u root -- "$(readlink -f "$(dirname "$0")/chroot-sources")"
+schroot -c "$session" -r "$@"
+schroot -c "$session" -e
Property changes on: trunk/debathena/scripts/daschroot
___________________________________________________________________
Added: svn:executable
+ *