From 74d5ebae0e161f4b7a4ea6f5b7ff1d0199b09818 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 28 Jan 2010 22:15:29 +0000 Subject: [PATCH] MFC r202324: 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 head 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. --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 0acee7d6d21..ad237dd0f18 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1248,7 +1248,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 \