cron-nightly.sh revision 10143
# 30 1 * * 1-5 . /jds/cbe/bin/env.sh; I_KNOW_WHAT_IM_DOING=yes myEnv=nightly-beijing.env $0
# 30 1 * * 1-5 /usr/sbin/chroot /path/to/jail/root /usr/bin/su - gbuild -c ". /jds/cbe/bin/env.sh; I_KNOW_WHAT_IM_DOING=yes myEnv=nightly-beijing.env $0"
# 30 1 * * 1-5 . /jds/cbe/bin/env.sh; thisSpec=SUNWTiff.spec I_KNOW_WHAT_IM_DOING=yes myEnv=nightly-beijing.env $0
# cron-script.sh, original script
# based on the original script, created cron-nightly.sh
# - added support for building individual components (must specify spec file), useful for debugging and others..
if [ -r $myEnv ]; then
/tmp/$shortName.copy.* )
cd /tmp
if [ -d $SPECDIR ]; then
if ! /usr/bin/cmp -s $SPECDIR/$shortName $MYNAME; then exec $SPECDIR/$shortName; fi
rm -rf $BUILD_BASE/PKGS/*
rm -rf $BUILD_BASE/SPKGS/*
rm -rf $BUILD_BASE/BUILD/*
while [ -d $WEBROOT/$NEW_LOGDIR ]; do
--mail-errors-to=$EMAIL_ERRORS_TO \
--norc \
/sgnome/tools/re-scripts/jds-build/make-jds-dist /jds/packages/PKGS /jds/dist nightly- > /dev/null 2>&1
echo '' | rcp -r /jds/dist/nightly-/${OSarch_full}/* /jds/dist/nightly-/${OSarch_full}/.??* ${RUSER}@${RHOST}:$RPMSDIR
echo '' | rsh $RHOST -l $RUSER "mkdir -p $RPMSDIR/all_pkgs && cd $RPMSDIR/all_pkgs && ln -s ../*/*.tar.gz ."
export ALL_REPORTS
mailx -s "${PRODNAME} S${OSrel} ${OSarch_full} nightly build: $FAILED pkgs failed" $EMAIL_NOTIFICATION