Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 21:06:04 +0200
From:      Morten Rodal <morten@rodal.no>
To:        Alexander Leidinger <netchild@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   make delete-old fails in some cases
Message-ID:  <200508192106.13958.morten@rodal.no>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508192106.13958.morten>