From 40c6067eb67f28d207cf57f8ba2fc549315827b5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Feb 2009 21:57:13 -0500 Subject: Support darcs. Thanks to Gian Piero Carrubba. Closes: #510032 --- commit.d/50vcs-commit | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'commit.d/50vcs-commit') diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index 8a0c0b6..1f4ab03 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -32,4 +32,10 @@ elif [ "$VCS" = bzr ] && [ -d .bzr ]; then else bzr commit $BZR_COMMIT_OPTIONS fi +elif [ "$VCS" = darcs ] && [ -d _darcs ]; then + logfile="$( mktemp -t etckeeper-$VCS.XXXXXXXXXX )" + printf "%b" "$message" > "$logfile" + darcs record $DARCS_COMMIT_OPTIONS --logfile="$logfile" + rm -f "$logfile" + unset logfile fi -- cgit v1.2.3