[Bps-public-commit] SD branch, master, updated. 21696337a9ef28e6dd5e2ec519bc2508f25d870b

jesse jesse at bestpractical.com
Mon Jul 13 17:38:00 EDT 2009


The branch, master has been updated
       via  21696337a9ef28e6dd5e2ec519bc2508f25d870b (commit)
      from  7946fb4af3fa2dd230108c66c595a66663d34c9b (commit)

Summary of changes:
 bin/darcs-sd |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 bin/darcs-sd

- Log -----------------------------------------------------------------
commit 21696337a9ef28e6dd5e2ec519bc2508f25d870b
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Mon Jul 13 17:37:16 2009 -0400

    Subject: [PATCH] initial stab at darcs-sd based on git-sd
    To: jesse at bestpractical.com
    From: Nathan Gray <kolibrie at graystudios.org>

diff --git a/bin/darcs-sd b/bin/darcs-sd
new file mode 100644
index 0000000..03e3f91
--- /dev/null
+++ b/bin/darcs-sd
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+darcsdir=`darcs show repo | grep Root: | sed -e 's/\s*Root: \s*//'`
+
+if [ -z $darcsdir ] ; then # darcsdir not defined
+    darcsdir=`pwd`
+    while ! [ -e "$darcsdir/_darcs" ]; do
+	if [ "$darcsdir" = "/" ]; then
+	    echo ""
+	    echo "Can't find a _darcs directory anywhere in your current directory"
+	    echo "or any higher directories."
+	    exit 1;
+	fi
+	darcsdir=`dirname $darcsdir`
+    done
+fi
+
+replica="$darcsdir/_darcs/prefs/sd"
+
+SD_REPO=$replica exec sd $@

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list