summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-01-13 20:26:36 +0000
committerJonas Smedegaard <dr@jones.dk>2008-01-13 20:26:36 +0000
commitacc385799f6603c3b85d263bdce1f92a73dfe8ac (patch)
treeabe1efc5925d063008dc2d887f9178c3058eec6b
parentc452004aa2754affd7aad862dcad80b91f732c8f (diff)
Add support for DARCS.
-rwxr-xr-xlocalvcsactions17
1 files changed, 17 insertions, 0 deletions
diff --git a/localvcsactions b/localvcsactions
index 40a8226..a3fd5d1 100755
--- a/localvcsactions
+++ b/localvcsactions
@@ -61,6 +61,12 @@ for project in $projects; do
repository="$(cd $project/$target && bzr nick)"
branch=""
fi
+ if [ -d "$project/$target/_darcs" ]; then
+ versys="Darcs"
+ versysfile="darcs"
+ repository=""
+ branch=""
+ fi
if [ -z "$versys" ] || [ -z "$versysfile" ]; then
echo "ERROR: Unknown version control system used for \"$project/$target\"."
exit 1
@@ -88,6 +94,9 @@ for project in $projects; do
Bazaar)
( cd $project/$target && bzr pull )
;;
+ Darcs)
+ ( cd $project/$target && darcs pull )
+ ;;
*)
echo "ERROR: Action \"$action\" not supported for \"$project/$target\"."
exit 1
@@ -110,6 +119,10 @@ for project in $projects; do
# FIXME: use tar_exclude to suppress other dirt than bzr itself
( cd $project/$target && bzr export ../$target-$versysfile$(date '+%Y%m%d').tar.gz )
;;
+ Darcs)
+ # FIXME: use tar_exclude to suppress other dirt than bzr itself
+ ( cd $project/$target && darcs dist && mv $target.tar.gz ../$target-$versysfile$(date '+%Y%m%d').tar.gz )
+ ;;
*)
echo "ERROR: Action \"$action\" not supported for \"$project/$target\"."
exit 1
@@ -143,6 +156,10 @@ for project in $projects; do
( cd $project/$target && test -f ../$target.ChangeLog && mv -f ../$target.ChangeLog ../$target.ChangeLog.bak )
( cd $project/$target && bzr log --short > ../$target.ChangeLog )
;;
+ Darcs)
+ ( cd $project/$target && test -f ../$target.ChangeLog && mv -f ../$target.ChangeLog ../$target.ChangeLog.bak )
+ ( cd $project/$target && darcs changes > ../$target.ChangeLog )
+ ;;
*)
echo "ERROR: Action \"$action\" not supported for \"$project/$target\"."
exit 1