document w (wildcard MX) and k (checkpoint interval) options
[unix-history] / usr / src / etc / weekly
index c901984..47fade2 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
 #!/bin/sh -
 #
-#      @(#)weekly      5.13 (Berkeley) %G%
+#      @(#)weekly      5.15 (Berkeley) %G%
 #
 
 PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
 #
 
 PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
@@ -17,7 +17,7 @@ echo "Subject: $host weekly run output"
 # before looking there for checked-out files
 
 if [ -d /usr/src -a \
 # before looking there for checked-out files
 
 if [ -d /usr/src -a \
-  X"`find -f /usr/src ! -fstype local -prune -or -type d -print prune`" != X ];
+  X"`find -f /usr/src ! -fstype local -prune -or -type d -print -prune`" != X ];
 then
        echo "looking for checked out files:"
        TDIR=/tmp/_checkout$$
 then
        echo "looking for checked out files:"
        TDIR=/tmp/_checkout$$
@@ -28,7 +28,7 @@ then
                owner=`awk '{ print $3 }' $file`
                echo "$owner    $file"
                echo $file >> $TDIR/$owner
                owner=`awk '{ print $3 }' $file`
                echo "$owner    $file"
                echo $file >> $TDIR/$owner
-       done | sed -e 's,SCCS/p.,,'
+       done | sed -e 's,SCCS/p.,, | sort'
        for file in $TDIR/*; do
                sed -e 's,SCCS/p.,,' $file | \
                    Mail -s 'checked out files' `basename $file`
        for file in $TDIR/*; do
                sed -e 's,SCCS/p.,,' $file | \
                    Mail -s 'checked out files' `basename $file`