diff options
author | pst <pst@FreeBSD.org> | 1997-08-17 17:54:41 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1997-08-17 17:54:41 +0000 |
commit | 738fa2d3d223c8a7e7914e2ea0d2ac114e9833f4 (patch) | |
tree | 3cd3db3c17fbcb4a1790ea89d7a43c9ff87e1179 /etc/periodic | |
parent | 3dbac0faf6b7dc794192d426b80fe2adba124c7a (diff) | |
download | FreeBSD-src-738fa2d3d223c8a7e7914e2ea0d2ac114e9833f4.zip FreeBSD-src-738fa2d3d223c8a7e7914e2ea0d2ac114e9833f4.tar.gz |
This was disabled, but it doesn't even make sense to leave it in as
an example, it's totally bogus.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/weekly/100.clean-src | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/etc/periodic/weekly/100.clean-src b/etc/periodic/weekly/100.clean-src deleted file mode 100755 index 230dff1..0000000 --- a/etc/periodic/weekly/100.clean-src +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -# -# $Id: 100.clean-src,v 1.1.1.1 1997/08/12 17:51:16 pst Exp $ -# -# Clean up /usr/src -# -# This really hasn't been used in generations, it's just here for -# backwards compatibility -- we don't even use SCCS anymore -# - -exit 0 # do not run by default - -# see if /usr/src exists and is local before doing anything - -if [ -d /usr/src -a \ - X"`find -f /usr/src ! -fstype local -prune -or -type d -print -prune`" != X ]; -then - - echo "" - echo "Removing old .o files from /usr/src:" - - find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \; - - echo "looking for checked out files in /usr/src:" - 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 |