Subject: Re: Adding -t|--text-mode into the mk/bulk/build script
To: Juan RP <juan@xtrarom.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/20/2005 11:04:04
On Tue, 20 Sep 2005, Juan RP wrote:
> Ok, latest patch attached.

+BUILDDATE=`date +%Y-%m-%d`
+
+if [ "$noemail" = "no" ]; then
+${PERL5} mk/bulk/post-build > ${FTP}/pkgsrc-results.txt | ${MAIL_CMD} -s

This looks like the email will be empty. The pipe will have nothing 
because already redirected to file.

Maybe use:

BUILDDATE=`date +%Y-%m-%d`
${PERL5} mk/bulk/post-build > ${FTP}/pkgsrc-results-${BUILDDATE}.txt
if [ "$noemail" = "no" ]; then
   ${MAIL_CMD} -s "pkgsrc ${OPSYS} ${OS_VERSION}/${MACHINE_ARCH} bulk build results $BUILDDATE" $ADMIN < ${FTP}/pkgsrc-results-${BUILDDATE}.txt
fi

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/