From 6f7be14a9a59c8f415456e3e070d2df99c6e27cc Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 14 Jan 2010 23:27:23 +0000 Subject: [PATCH] In 'make delete-old', use 'exec' to redirect an fd persistently. That is, write 'exec 3<&0' instead of '3<&0'. Due to an sh(1) bug fixed in r199953, the latter also persisted, provided that fd 3 was not open before. With newer sh or fd 3 open, it would not delete orphaned catpages. MFC after: 2 weeks --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index a3499f354285..340357d027ad 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1266,7 +1266,7 @@ delete-old-files: fi; \ done # Remove catpages without corresponding manpages. - @3<&0; \ + @exec 3<&0; \ find ${DESTDIR}/usr/share/man/cat* ! -type d | \ sed -ep -e's:${DESTDIR}/usr/share/man/cat:${DESTDIR}/usr/share/man/man:' | \ while read catpage; do \