cvs: php-gcov-web(SOC06) /cron cron.sh

From: Date: Sat, 21 Oct 2006 11:20:31 +0000
Subject: cvs: php-gcov-web(SOC06) /cron cron.sh
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-33125@lists.php.net to get a copy of this message
nlopess Sat Oct 21 11:20:31 2006 UTC Modified files: (Branch: SOC06) /php-gcov-web/cron cron.sh Log: 2nd part of the patch to display the estimated time for build completion. #based on a patch by Daniel http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/cron.sh?r1=1.1.2.17&r2=1.1.2.18&diff_format=u Index: php-gcov-web/cron/cron.sh diff -u php-gcov-web/cron/cron.sh:1.1.2.17 php-gcov-web/cron/cron.sh:1.1.2.18 --- php-gcov-web/cron/cron.sh:1.1.2.17 Sat Oct 7 18:56:02 2006 +++ php-gcov-web/cron/cron.sh Sat Oct 21 11:20:31 2006 @@ -17,12 +17,20 @@ # | Nuno Lopes <nlopess@php.net> | # +----------------------------------------------------------------------+ -# $Id: cron.sh,v 1.1.2.17 2006/10/07 18:56:02 nlopess Exp $ +# $Id: cron.sh,v 1.1.2.18 2006/10/21 11:20:31 nlopess Exp $ source ./config.sh export LC_ALL=C export CCACHE_DISABLE=1 +# Called either on error or successful completion +remove_pid_file() +{ + rm -f "$PIDFILE" +} +trap remove_pid_file EXIT + + # file that contains the PHP version tags FILENAME=tags.inc @@ -74,6 +82,7 @@ OUTDIR=${OUTROOT}/${PHPTAG} PHPSRC=${PHPROOT}/${PHPTAG} TMPDIR=${PHPROOT}/tmp/${PHPTAG} + PIDFILE=${OUTDIR}/build.pid if [ "${CVSTAG}" = "PHP_HEAD" ]; then CVSTAG="HEAD" @@ -82,6 +91,8 @@ mkdir -p $OUTDIR mkdir -p $TMPDIR + echo $$ > ${PIDFILE} + cd ${PHPROOT} if [ -d ${PHPTAG} ]; then cd ${PHPTAG} @@ -136,6 +147,8 @@ php ${WORKDIR}/cron.php ${TMPDIR} ${OUTDIR} ${PHPSRC} ${MAKESTATUS} ${PHPTAG} ${BUILD_TIME} + remove_pid_file + fi # End verify build PHP version done

« previous php.mirrors (#33125) next »