2008-05-21 Damien Carbery <[email protected]>
authordcarbery
Wed, 21 May 2008 15:43:44 +0000
changeset 12331 726c57a648c6
parent 12330 26062c4169d2
child 12332 3f0647b14754
2008-05-21 Damien Carbery <[email protected]> * cron-script.sh: Do debug builds on 'even' days of the week (based on "date '+%w'" i.e. Sun, Tues, Thurs, Sat).
ChangeLog
cron-script.sh
--- a/ChangeLog	Wed May 21 09:40:53 2008 +0000
+++ b/ChangeLog	Wed May 21 15:43:44 2008 +0000
@@ -1,5 +1,7 @@
 2008-05-21  Damien Carbery <[email protected]>
 
+	* cron-script.sh: Do debug builds on 'even' days of the week (based on
+	  "date '+%w'" i.e. Sun, Tues, Thurs, Sat).
 	* SUNWgnome-im-client.spec: Add Build/Requires SUNWsqlite3, SUNWpr and
 	  SUNWtls to fix #6703993.
 	* SUNWgnome-base-libs.spec: Add 'Requires: SUNWcupsu' to devel package
--- a/cron-script.sh	Wed May 21 09:40:53 2008 +0000
+++ b/cron-script.sh	Wed May 21 15:43:44 2008 +0000
@@ -158,6 +158,14 @@
 rm -r po-sun/po-sun-tarballs manpages/sun-manpage-tarballs
 make 
 
+# Determine whether to do debug or non-debug build.
+# On 'even' days of the week (Sun, Tues, Thur, Sat) to a debug build.
+DEBUG_BUILD=
+DOW=$[ $(date +"%w") % 2 ]
+if [ $DOW -eq "0" ]; then
+  DEBUG_BUILD="--with-debug"
+fi
+
 cd $SPECDIR
 
 # start the build
@@ -166,7 +174,7 @@
         --logdir-url=http://jds.ireland/$LOGDIR \
 	[email protected] \
         --prodname="${PRODNAME}/s${OSrel}${OSarch}" \
-        --live --with-l10n --with-moz-nss-nspr \
+        --live --with-l10n --with-moz-nss-nspr ${DEBUG_BUILD} \
         --define "nightly 1" --with-sun-branding --with-lcms \
         --summary-log=$WEBROOT/$LOGDIR.html \
         --summary-title="${PRODNAME} S${OSrel}/${OSarch_full} Nightly Build Report `date +'%d %B %Y'`" \
@@ -184,7 +192,7 @@
         --logdir-url=http://jds.ireland/$LOGDIR \
 	[email protected] \
         --prodname="${PRODNAME}/s${OSrel}${OSarch}" \
-        --live --with-l10n --with-moz-nss-nspr \
+        --live --with-l10n --with-moz-nss-nspr ${DEBUG_BUILD} \
         --define "nightly 1" --with-sun-branding \
         --summary-log=$WEBROOT/$LOGDIR-other.html \
         --summary-title="${PRODNAME} S${OSrel}/${OSarch_full} SFO Nightly Build Report `date +'%d %B %Y'`" \