From 5b445c1a8963fadfa5afa997604a2cf0be2eb9f9 Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Sun, 9 Dec 2007 17:38:27 +0100 Subject: [PATCH] Hooks pour darcs. darcs-hash:20071209163827-af139-4930465f328e974b39c143f937c191281214115a.gz --- bin/all/darcs-record-postpook | 8 ++++++++ bin/all/darcs-record-prehook | 6 ++++++ bin/all/darcs-send-changes | 2 ++ 3 files changed, 16 insertions(+) create mode 100755 bin/all/darcs-record-postpook create mode 100755 bin/all/darcs-record-prehook create mode 100755 bin/all/darcs-send-changes diff --git a/bin/all/darcs-record-postpook b/bin/all/darcs-record-postpook new file mode 100755 index 00000000..0f4adc51 --- /dev/null +++ b/bin/all/darcs-record-postpook @@ -0,0 +1,8 @@ +#!/bin/bash +author_file="_darcs/prefs/author" +if [ -f $author_file ]; then + rm -f $author_file + echo "N'utilisez pas de fichier $author_file"'!!' + echo "Utilisez plutot la variable DARCS_EMAIL ou un fichier ~/.darcs/author" +fi +/usr/scripts/bin/darcs/darcs-send-changes roots@crans.org diff --git a/bin/all/darcs-record-prehook b/bin/all/darcs-record-prehook new file mode 100755 index 00000000..11dea895 --- /dev/null +++ b/bin/all/darcs-record-prehook @@ -0,0 +1,6 @@ +#!/bin/bash +author_file="_darcs/prefs/author" +if [ -f $author_file ]; then + echo "Suppression de $author_file." + rm -f $author_file +fi diff --git a/bin/all/darcs-send-changes b/bin/all/darcs-send-changes new file mode 100755 index 00000000..41b648ad --- /dev/null +++ b/bin/all/darcs-send-changes @@ -0,0 +1,2 @@ +#!/bin/bash +exec python /usr/scripts/gestion/darcs_send_changes.py "$@"