From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A08D138350 for ; Wed, 29 Jan 2020 18:00:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3002E091A; Wed, 29 Jan 2020 18:00:52 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB5B2E091A for ; Wed, 29 Jan 2020 18:00:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D13634E4EA for ; Wed, 29 Jan 2020 18:00:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E0B969C for ; Wed, 29 Jan 2020 18:00:49 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1580320790.d71cc8025960c1676a42ecc7f5efdc8252c8923b.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: bin/ X-VCS-Repository: proj/devmanual X-VCS-Files: bin/gen-eclass-html.sh X-VCS-Directories: bin/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: d71cc8025960c1676a42ecc7f5efdc8252c8923b X-VCS-Branch: master Date: Wed, 29 Jan 2020 18:00:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cebefa34-650b-47cf-9388-891cdc826532 X-Archives-Hash: 040c741bf29dfe76bc080900f9f64fdb commit: d71cc8025960c1676a42ecc7f5efdc8252c8923b Author: Ulrich Müller gentoo org> AuthorDate: Wed Jan 29 17:59:50 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed Jan 29 17:59:50 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d71cc802 bin/gen-eclass-html.sh: Prevent removal of dirs. Updating a file doesn't change the modification time of its directory, therefore scanning for "old directories" produced false positives. Work around the problem by touching the directory. Signed-off-by: Ulrich Müller gentoo.org> bin/gen-eclass-html.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh index fc37f03..efa7f12 100755 --- a/bin/gen-eclass-html.sh +++ b/bin/gen-eclass-html.sh @@ -102,6 +102,8 @@ for i in $(/usr/bin/qlist eclass-manpages) /usr/share/man/man5/ebuild.5*; do FINAL="${DIRNAME}/index.html" DECOMPRESS=$(guesscompress "${i}") [[ -d ${DIRNAME} ]] || mkdir -p ${DIRNAME} + # update the dir's mtime to prevent its removal below + touch ${DIRNAME} # rebuild the man page each time echo -n "${HEADER//@TITLE@/${BASENAME}}" > "${FINAL}" # generate html pages and fix hyperlinks for eclass and ebuild man pages