cron-script.sh revision 10140
10140N/A# Run, Mon-Fri at 1:30am. Add to build user's crontab. 10140N/A# The same with a jail. Add to root's crontab. Example assumes 'gbuild' is the 10140N/A# date format appended to the Release tag in the spec files 10140N/A# (passed to the date command on the cmd line) 10140N/A# date format used for naming the directories 10140N/A# document root of the web server 10140N/A# subdir to keep logs and reports on the webserver 10140N/A# ------------ nothing to configure below this line -------------- 10140N/A echo " ,---------------------------------------------------------------." 10140N/A echo "| This script is intended to be run from cron for producing |" 10140N/A echo "| official nightly builds. It will mail responsible engineers |" 10140N/A echo "| if any build failure occurs, sends build reports to v" 10140N/A echo "| RE and update web pages." 10140N/A echo "| Don't run it unless you know what you are doing. Thanks." 10140N/A echo "| Mail gnome-re@sun.com if you need more info." 10140N/A# remove temporary files on exit 10140N/A# make a copy of the cron script in /tmp and execute that in order to 10140N/A# avoid disasters caused by cvs update. 10140N/A# checkout-out SVN copy *MUST* be read-only, or "update" needs passwd 10140N/A# if the script changed during cvs update, restart with the updated script 10140N/A# uninstall all pkgs left behind by a previous build 10140N/A# remove-gnome will now remove anything left from uninstall-pkgs in case 10140N/A# or a packaging change for example 10140N/A# if the log directory exists, open a new one with numbered suffix 10140N/A# the number of failed pkgs is returned 10140N/A# Disable deletion of nightly- dir as network area often full - this is backup. 10140N/A# Report absolute symlinks. These are blockers for Solaris integration. 10140N/A# Count the number of local patches. 10140N/A# send warnings, errors and summary in email 10140N/A# Email Beijing team to begin downloading packages. 10140N/A mailx -s
"${PRODNAME} S${OSrel} ${OSarch_full} Development nightly build: $FAILED pkgs failed" "sunop@triathlon.prc.sun.com" 10140N/A# find any differences from the prototype files saved after the 10140N/A# if any diffs found mail the result to RE 10140N/A ( echo "Prototype changes found since the last milestone build:" 10140N/A mailx -s "${PRODNAME} S${OSrel} ${OSarch_full} prototype changes" \