[PD-dev] auto-build-common.local

Hans-Christoph Steiner hans at eds.org
Wed Nov 28 15:48:12 CET 2007


FYI:  ${SCRIPT_DIR} is never set to anything in your new changes to  
auto-build-common, so that auto-build-common.local will never be  
found unless it is in "/".

.hc

> Modified Files:
> 	mail-mingw-log-hack.sh run-automated-builder
> Log Message:
> only send emails if RECIPIENT is defined
>
>
>
> Index: run-automated-builder
> ===================================================================
> RCS file: /cvsroot/pure-data/scripts/auto-build/run-automated- 
> builder,v
> retrieving revision 1.20
> retrieving revision 1.21
> diff -C2 -d -r1.20 -r1.21
> *** run-automated-builder	27 Nov 2007 03:03:40 -0000	1.20
> --- run-automated-builder	27 Nov 2007 20:49:22 -0000	1.21
> ***************
> *** 37,42 ****
> --- 37,44 ----
>   	 completion_test=`tail -1 ${LOGFILE}`
>   	 if [ "x${completion_test}" != "xSUCCESS" ]; then
> + 		if [ "x${RECIPIENT}" != "x" ]; then
>   		  SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME"
>   		  tail -20 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT}
> + 		fi
>   	 fi
>   }
>
> Index: mail-mingw-log-hack.sh
> ===================================================================
> RCS file: /cvsroot/pure-data/scripts/auto-build/mail-mingw-log- 
> hack.sh,v
> retrieving revision 1.3
> retrieving revision 1.4
> diff -C2 -d -r1.3 -r1.4
> *** mail-mingw-log-hack.sh	22 Oct 2007 22:41:47 -0000	1.3
> --- mail-mingw-log-hack.sh	27 Nov 2007 20:49:22 -0000	1.4
> ***************
> *** 12,17 ****
> --- 12,19 ----
>   	 completion_test=`tail -1 ${logfile}`
>   	 if [ "x${completion_test}" != "xSUCCESS" ]; then
> + 		if [ "x${RECIPIENT}" != "x" ]; then
>   		  SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME"
>   		  tail -20 ${logfile} | mail -s "autobuild: $logfile" ${RECIPIENT}
> + 		fi
>   	 fi
>   done
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 27 Nov 2007 21:01:03 +0000
> From: IOhannes m zmölnig <zmoelnig at users.sourceforge.net>
> Subject: [PD-cvs] scripts/auto-build auto-build-common,1.1,1.2
> To: pd-cvs at iem.at
> Message-ID: <mailman.9.1196247602.28024.pd-cvs at iem.at>
>
> Update of /cvsroot/pure-data/scripts/auto-build
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1086
>
> Modified Files:
> 	auto-build-common
> Log Message:
> disabled the RECIPIENT by default and added some notes on how to  
> enable it
>
>
> Index: auto-build-common
> ===================================================================
> RCS file: /cvsroot/pure-data/scripts/auto-build/auto-build-common,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -C2 -d -r1.1 -r1.2
> *** auto-build-common	18 Oct 2006 15:42:12 -0000	1.1
> --- auto-build-common	27 Nov 2007 21:01:01 -0000	1.2
> ***************
> *** 6,10 ****
>   TIME=`date +%H.%M.%S`
>
>   # recipient of any emails set from the scripts
> ! RECIPIENT=pd-cvs at iem.at
>
> --- 6,29 ----
>   TIME=`date +%H.%M.%S`
>
> + ## the following creates a spam-bot that sends emails to an  
> address that has not asked for it
> + ## because of the spam-problem, i (jmz) have disabled it
>   # recipient of any emails set from the scripts
> ! #RECIPIENT=pd-cvs at iem.at
> !
>
> + ## if you want to send emails about the success of your build,
> + ## please create a file "auto-build-common.local" in this directory
> + ## and set the "RECIPIENT" address to some valid email-address
> + #
> + ## please do NOT check your auto-build-common.local into the CVS
> + #
> + ## another possibility is to set the "RECIPIENT" environmental  
> variable before running
> + ## the autobuilder
> +
> + if [ -e ${SCRIPT_DIR}/auto-build-common.local ]; then
> +   . ${SCRIPT_DIR}/auto-build-common.local
> + else
> +   echo "Could not find local configuration in \"${SCRIPT_DIR}/ 
> auto-build-common.local\""
> +   echo "Skipping... (see ${SCRIPT_DIR}/auto-build-common for  
> instructions)"
> +   echo
> + fi
>



------------------------------------------------------------------------ 
----

All mankind is of one author, and is one volume; when one man dies,  
one chapter is not torn out of the book, but translated into a better  
language; and every chapter must be so translated.... -John Donne






More information about the Pd-dev mailing list