diff options
-rwxr-xr-x | localvcsactions | 17 |
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 |