Print this page
9231 nightly should create a log/latest/ symlink
*** 1021,1031 ****
function logshuffle {
LLOG="$ATLOG/log.`date '+%F.%H:%M'`"
if [ -f $LLOG -o -d $LLOG ]; then
LLOG=$LLOG.$$
fi
! mkdir $LLOG
export LLOG
if [ "$build_ok" = "y" ]; then
mv $ATLOG/proto_list_${MACH} $LLOG
--- 1021,1033 ----
function logshuffle {
LLOG="$ATLOG/log.`date '+%F.%H:%M'`"
if [ -f $LLOG -o -d $LLOG ]; then
LLOG=$LLOG.$$
fi
!
! rm -f "$ATLOG/latest" 2>/dev/null
! mkdir -p $LLOG
export LLOG
if [ "$build_ok" = "y" ]; then
mv $ATLOG/proto_list_${MACH} $LLOG
*** 1103,1112 ****
--- 1105,1116 ----
staffer cp ${LLOG}/mail_msg $PARENT_WS/usr/src/mail_msg-${MACH}
staffer cp $LOGFILE $PARENT_WS/usr/src/nightly-${MACH}.log
fi
mv $LOGFILE $LLOG
+
+ ln -s "$LLOG" "$ATLOG/latest"
}
#
# Remove the locks and temporary files on any exit
#