On 2015-06-03 14:43, Michal Marek wrote:
> On 2015-06-03 14:39, Jean Delvare wrote:
>> Would the following alternative implementation work for you?
>>
>> ---
>>  Makefile.in |    6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> --- a/Makefile.in
>> +++ b/Makefile.in
>> @@ -225,7 +225,11 @@ doc/reference : bin/quilt $(QUILT:%=quil
>>      done |                                                          \
>>      $(SED) -e 's/\$$EDITOR ([^)]*)/$$EDITOR/'                       \
>>             -e '/^$$/!s/^/  /'                                       \
>> -           -e 's/^  Usage: *//' > $@
>> +           -e 's/^  Usage: *//' > [email protected]
>> +    @if test ! -e $@ || ! @DIFF@ -q [email protected] $@;                      \
>> +    then                                                            \
>> +            mv -f [email protected] $@;                                        \
>> +    fi
> 
> Yes.

I take that back. This patch suffers from the same problem as an earlier
version of mine: As soon as there is a change to one of the scripts, the
'reference' file will be regenerated on every make invocation, which
takes some time (split second, but still noticeable). That's why I added
the persistent .tmp file in the version I sent.

Michal

_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to