/usr/bin/darcs-sd is in sd 0.75-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 "$@"
|