User Tools

Site Tools


senddarcschanges.sh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
senddarcschanges.sh [2005/10/05 07:55] 209.8.22.199senddarcschanges.sh [2007/03/29 11:29] (current) – old revision restored 195.35.72.54
Line 1: Line 1:
 +====== senddarcschanges.sh ======
  
 +This code is used to send a daily report about the [[wiki:darcs]] checkins to the [[wiki:mailinglist]]
 +
 +<code bash>
 +#!/bin/sh
 +
 +REPO="http://dev.splitbrain.org/darcs/dokuwiki";
 +MAIL="dokuwiki@freelists.org"
 +
 +CHANGES=`darcs changes --matches 'date yesterday' --repo $REPO 2>/dev/null`
 +if [ $? -eq 0 ]; then
 +  #spam protect emails:
 +  CHANGES=`echo "$CHANGES" |sed -e 's/@/[at]/g'`
 +
 +  echo "
 +Good Morning!
 +
 +This are the darcs changes for DokuWiki committed
 +yesterday. Please test them and report bugs.
 +
 +---------------------------------------------------------------------
 +$CHANGES
 +---------------------------------------------------------------------
 +
 +Single patches can be downloaded from
 +http://dev.splitbrain.org/darcs/index.cgi/dokuwiki/?c=patches
 +
 +Bye,
 +your darcs changlog mailer 
 +
 +" | mail -s "darcs changes" $MAIL
 +
 +fi
 +</code>