From owner-freebsd-current@FreeBSD.ORG Fri Aug 19 19:07:42 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D311316A41F; Fri, 19 Aug 2005 19:07:42 +0000 (GMT) (envelope-from morten@rodal.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FCED43D46; Fri, 19 Aug 2005 19:07:41 +0000 (GMT) (envelope-from morten@rodal.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0ILH0084EH7R0JB0@osl1smout1.broadpark.no>; Fri, 19 Aug 2005 21:09:27 +0200 (CEST) Received: from slimy.rodal.no ([80.202.60.18]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0ILH00E4IHABOFA0@osl1sminn1.broadpark.no>; Fri, 19 Aug 2005 21:10:59 +0200 (CEST) Received: from atlantis.rodal.no (atlantis.rodal.no [192.168.20.58]) by slimy.rodal.no (8.13.1/8.12.11) with ESMTP id j7JJ6EZo091384; Fri, 19 Aug 2005 21:06:14 +0200 (CEST envelope-from morten@rodal.no) Received: from localhost (localhost [[UNIX: localhost]]) by atlantis.rodal.no (8.13.4/8.13.4/Submit) id j7JJ6E0l001012; Fri, 19 Aug 2005 21:06:14 +0200 (CEST envelope-from morten@rodal.no) Date: Fri, 19 Aug 2005 21:06:04 +0200 From: Morten Rodal To: Alexander Leidinger Message-id: <200508192106.13958.morten@rodal.no> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1865671.W4XLj11mf9; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new X-Authentication-warning: atlantis.rodal.no: morten set sender to morten@rodal.no using -f User-Agent: KMail/1.8.2 Cc: freebsd-current@freebsd.org Subject: make delete-old fails in some cases X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 19:07:42 -0000 --nextPart1865671.W4XLj11mf9 Content-Type: multipart/mixed; boundary="Boundary-01=_d2iBDHKYVVVjJ7g" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_d2iBDHKYVVVjJ7g Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have been trying to clean up an old machine using make delete-old=20 (excellent by the way!), but I ran into some problems: root@burton# make delete-old >>> Removing old files (only deletes safe to delete libs) [: /usr/share/man/man2/__syscall.2.gz: unexpected operator [: /usr/share/man/man6/banner.6.gz: unexpected operator [: /usr/share/man/man7/ascii.7.gz: unexpected operator >>> Old files removed >>> Removing old directories >>> Old directories removed To remove old libraries run 'make delete-old-libs'. root@burton# I have attached a patch which at least it doesn't give my any of the=20 unexpected operator warnings, but I am unsure if it really is a fix. =20 Please take a look at it and tell me if you need any more details. =2D-=20 Morten Rodal "A supercomputer is a device for turning compute-bound problems into I/O bound problems." -- Ken Batcher (Goodyear Aerospace) --Boundary-01=_d2iBDHKYVVVjJ7g Content-Type: text/x-diff; charset="us-ascii"; name="Makefile.inc1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Makefile.inc1.diff" --- Makefile.inc1.orig Fri Aug 19 20:47:11 2005 +++ Makefile.inc1 Fri Aug 19 20:50:22 2005 @@ -1089,7 +1089,7 @@ | sed 's:${DESTDIR}/usr/share/man/cat:${DESTDIR}/usr/share/man/man:') \ check_empty=$$(echo $${catpage} \ | sed 's:.*\*:empty:'); \ - [ $${check_empty} != empty -a ! -e $${manpage} ] \ + [ $${check_empty} != empty -a ! -e "$${manpage}" ] \ && rm ${RM_I} $${catpage} || true; \ done; \ done --Boundary-01=_d2iBDHKYVVVjJ7g-- --nextPart1865671.W4XLj11mf9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDBi2lbWe1Cy11WVsRAv0ZAJ9Y+lo/1qtc453w2dw6dzUoMjq9XgCeOGNp qTUE9LC0se2XGDc0X0taJHs= =Bk/b -----END PGP SIGNATURE----- --nextPart1865671.W4XLj11mf9--