From: Christian Franke <Christian.Franke@t-online.de>
To: cygwin-apps@cygwin.com
Subject: Re: [PATCH cygport] dodoc: Skip a file if a compressed version already exists
Date: Sun, 10 Mar 2024 16:44:06 +0100 [thread overview]
Message-ID: <95b6afb9-7e24-4541-ba28-74a757006725@t-online.de> (raw)
In-Reply-To: <d4ee3268-8da2-4368-b69a-a9c3f18b1518@dronecode.org.uk>
Jon Turney wrote:
> On 01/03/2024 13:13, Christian Franke via Cygwin-apps wrote:
>> It IMO makes sense to compress large and rarely viewed doc files like
>> change logs. This seems to be common practice on Debian etc.
>>
>> With current cygport, the following results in ChangeLog and
>> ChangeLog.gz in the docdir:
>>
>> src_install()
>> {
>> ...
>> dodoc ChangeLog
>> gzip -9 -n "${D}/usr/share/doc/${PN}/ChangeLog"
>> }
>
> Uh, I don't quite see how this patch will change the behavior of this
> fragment.
>
Yes, it actually doesn't change the behavior of this fragment itself.
> Even more confusing, why isn't this already doing what you want?
> Unless you specify -k/--keep to gzip, the input file is removed, right?
Yes - but after this src_install() the file will be re-added by
__predoc() unless _CYGPORT_RESTRICT_postinst_doc_ is set. The patch
avoids this because __predoc() also uses dodoc().
next prev parent reply other threads:[~2024-03-10 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 13:13 Christian Franke
2024-03-10 15:29 ` Jon Turney
2024-03-10 15:44 ` Christian Franke [this message]
2024-04-29 19:31 ` Jon Turney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95b6afb9-7e24-4541-ba28-74a757006725@t-online.de \
--to=christian.franke@t-online.de \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).