Subject: misc/13700: please check BSDOBJDIR when remove old .o files in etc/weekly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hamajima@nagoya.ydc.co.jp>
List: netbsd-bugs
Date: 08/13/2001 10:48:12
>Number: 13700
>Category: misc
>Synopsis: please check BSDOBJDIR when remove old .o files in etc/weekly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 12 18:45:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Katsuomi Hamajima
>Release: NetBSD 1.5X
>Organization:
>Environment:
System: NetBSD ppc 1.5X NetBSD 1.5X (8500) #29: Thu Aug 9 12:08:35 JST 2001 hamajima@ppc:/usr/src/sys/arch/macppc/compile/8500 macppc
>Description:
please check BSDOBJDIR when remove old .o files in etc/weekly
>How-To-Repeat:
>Fix:
etc/weekly
@@ -27,7 +27,14 @@
#echo ""
#echo "Removing old .o files:"
-#find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \;
+#BSDOBJDIR=/usr/obj
+#if [ -r /etc/mk.conf ]; then
+# eval `grep BSDOBJDIR /etc/mk.conf | sed 's/[ ]*//g'`
+#fi
+#if [ ! -d $BSDOBJDIR ]; then
+# BSDOBJDIR=/usr/src
+#fi
+#find $BSDOBJDIR -name '*.o' -atime +21 -print -a -exec rm -f {} \;
# see if /usr/src exists and is local
# before looking there for checked-out files
>Release-Note:
>Audit-Trail:
>Unformatted: