[Pkg-haskell-commits] darcs: tools: add-hooks.sh.

Marco Túlio Gontijo e Silva marcot at holoscopio.com
Tue Jun 11 10:18:59 UTC 2013


Sun Jul  5 16:29:50 UTC 2009  Marco T[_<U+00FA>_]lio Gontijo e Silva <marcot at holoscopio.com>
  * add-hooks.sh.

    A ./add-hooks.sh
    A ./defaults
    A ./email-template

Sun Jul  5 16:29:50 UTC 2009  Marco Túlio Gontijo e Silva <marcot at holoscopio.com>
  * add-hooks.sh.
diff -rN -u old-tools/add-hooks.sh new-tools/add-hooks.sh
--- old-tools/add-hooks.sh	1970-01-01 00:00:00.000000000 +0000
+++ new-tools/add-hooks.sh	2013-06-11 10:18:59.201701509 +0000
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# USAGE:
+
+# add-hooks.sh [PACKAGE ...]
+
+set -e
+
+SRC=/darcs/pkg-haskell/tools
+while [ -n "$1" ]
+do
+    DARCS=/darcs/pkg-haskell/$1/_darcs
+    DEFAULTS=$DARCS/prefs/defaults
+    if [ ! -e $DEFAULTS ]
+    then
+        mkdir -p `dirname $DEFAULTS`
+        cp $SRC/defaults $DEFAULTS
+    fi
+    TEMPLATE=$DARCS/third-party/darcs-monitor/email-template
+    if [ ! -e $TEMPLATE ]
+    then
+        mkdir -p `dirname $TEMPLATE`
+        cp $SRC/email-template $TEMPLATE
+    fi
+    shift
+done
diff -rN -u old-tools/defaults new-tools/defaults
--- old-tools/defaults	1970-01-01 00:00:00.000000000 +0000
+++ new-tools/defaults	2013-06-11 10:18:52.742310418 +0000
@@ -0,0 +1,2 @@
+apply posthook darcs-monitor --charset=UTF-8 email pkg-haskell-commits at lists.alioth.debian.org
+apply run-posthook
diff -rN -u old-tools/email-template new-tools/email-template
--- old-tools/email-template	1970-01-01 00:00:00.000000000 +0000
+++ new-tools/email-template	2013-06-11 10:18:50.815315790 +0000
@@ -0,0 +1,5 @@
+From: %AUTHOR%
+To: %RECIPIENT%
+Subject: darcs: %SHORTREPO%: %TITLE%
+
+%CHANGES%




More information about the Pkg-haskell-commits mailing list