I wonder if you could just use rsync (without timestamp checking) for this?
If your:

   - documentation set isn't so large that temporarily having a second set
   causes problems
   - configuration is such that output stays the same until your source or
   Doxygen versions change

You could keep the real/stable output copy in one location, generate a
temporary copy into a separate location, then rsync without timestamp
checking (may need to use checksum mode?)

It might be possible to accomplish something similar if you keep the output
in git or another vcs if they're capable of preserving timestamps, but I
haven't looked into that.

On Fri, Feb 8, 2019 at 11:22 AM Marc Herbert <marc.herb...@gmail.com> wrote:

>
>> The simplest method in my mind would be  to have a post-process task
>> that compares the Doxygen output directory with another copy, updating
>> that copy if there is a ''significant' (not just timestamping)
>> difference. It would be a simple enough program to write to customize
>> for you own needs.
>>
>
> That was my plan B. I've implemented it in Python and it works:
> https://github.com/zephyrproject-rtos/zephyr/pull/13159
>  restore_modifications_times.py
> In this particular example this brings down the incremental build time
> from 70-80 seconds down to less than 10 seconds.
>
> It took a surprisingly high number of lines of code: about 100. As usual
> file management in Python proved wordy. But hey, data structures suck in
> shell script and it's not even portable anyway. To be fair these 100 lines
> include logging and a decent option parser with help text.
>
> This script is not specific to Doxygen and could be used for other similar
> situations (Apache license).
>
> Back to Doxygen I suspect this script could be entirely avoided with say
> 10-20 lines of logic inside Doxygen itself? :-(
>
> Marc
> _______________________________________________
> Doxygen-users mailing list
> Doxygen-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/doxygen-users
>
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to