Print this page
9231 nightly should create a log/latest/ symlink

@@ -1021,11 +1021,13 @@
 function logshuffle {
         LLOG="$ATLOG/log.`date '+%F.%H:%M'`"
         if [ -f $LLOG -o -d $LLOG ]; then
                 LLOG=$LLOG.$$
         fi
-        mkdir $LLOG
+
+        rm -f "$ATLOG/latest" 2>/dev/null
+        mkdir -p $LLOG
         export LLOG
 
         if [ "$build_ok" = "y" ]; then
                 mv $ATLOG/proto_list_${MACH} $LLOG
 

@@ -1103,10 +1105,12 @@
                 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
 #