This was disabled, but it doesn't even make sense to leave it in as
an example, it's totally bogus.
This commit is contained in:
parent
4afb0d5a5b
commit
4bf4d90ac6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28319
@ -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
|
Loading…
Reference in New Issue
Block a user