mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Disabled the scan for SCCS checked out files since it was broken and
caused error messages to be mailed, and FreeBSD does NOT have SCCS, we use CVS!
This commit is contained in:
parent
6ee39ff534
commit
ae253c20de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274
38
etc/weekly
38
etc/weekly
@ -16,25 +16,25 @@ echo "Subject: $host weekly run output"
|
||||
# see if /usr/src exists and is local
|
||||
# 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 ];
|
||||
then
|
||||
echo "looking for checked out files:"
|
||||
TDIR=/tmp/_checkout$$
|
||||
|
||||
mkdir $TDIR
|
||||
for file in `find -f /usr/src ! -fstype local -prune -or \
|
||||
-name 'p.*' -print | egrep 'SCCS/p\.'`; do
|
||||
owner=`awk '{ print $3 }' $file`
|
||||
echo "$owner $file"
|
||||
echo $file >> $TDIR/$owner
|
||||
done | sed -e 's,SCCS/p.,,'
|
||||
for file in $TDIR/*; do
|
||||
sed -e 's,SCCS/p.,,' $file | \
|
||||
Mail -s 'checked out files' `basename $file`
|
||||
done
|
||||
rm -rf $TDIR
|
||||
fi
|
||||
#if [ -d /usr/src -a \
|
||||
# X"`find -f /usr/src ! -fstype local -prune -or -type d -print -prune`" != X ];
|
||||
#then
|
||||
# echo "looking for checked out files:"
|
||||
# TDIR=/tmp/_checkout$$
|
||||
#
|
||||
# mkdir $TDIR
|
||||
# for file in `find -f /usr/src ! -fstype local -prune -or \
|
||||
# -name 'p.*' -print | egrep 'SCCS/p\.'`; do
|
||||
# owner=`awk '{ print $3 }' $file`
|
||||
# echo "$owner $file"
|
||||
# echo $file >> $TDIR/$owner
|
||||
# done | sed -e 's,SCCS/p.,,'
|
||||
# for file in $TDIR/*; do
|
||||
# sed -e 's,SCCS/p.,,' $file | \
|
||||
# Mail -s 'checked out files' `basename $file`
|
||||
# done
|
||||
# rm -rf $TDIR
|
||||
#fi
|
||||
|
||||
if [ -f /usr/lib/uucp/clean.weekly ]; then
|
||||
echo ""
|
||||
|
Loading…
Reference in New Issue
Block a user