Vincent Lefevre wrote:
> Bob Proulx wrote:
> > But if you can't set the time on files then that won't work.
>
> That's precisely the problem: "touch" does not work, except for setting
> mtime to the *current* time.
That was why I posted the workaround for this problem of using touch
to set all of the timestamps to the current time. I am not sure you
noticed it.
> > Therefore I would simply try to get all of the files up to the current
> > time without a reference file. That seems like it should even on
> > pretty broken systems. This naturally has race potential but seems
> > like it might work most of the time.
> >
> > $ cd PROJECTDIR && find . -type f -exec touch {} +
If there are a small enough number of files then it is statistically
likely that this will succeed. However I acknowledge that if there
are a large number of files that it might take so long to complete
that it would cross a clock tick boundary and cross from one into the
next. I wouldn't be surprised to hear that it took a run or tree in
order to get the task done all in one time tick. But I think it very
likely that this would succeed.
Sometimes these systems that are extremely reduced in functionality
just are not worth the effort to support.
Bob