[Python-Dev] End of the mystery "@README.txt Mercurial bug"

Ronald Oussoren ronaldoussoren at mac.com
Wed Jun 26 14:57:28 CEST 2013


On 26 Jun, 2013, at 14:18, Eric V. Smith <eric at trueblade.com> wrote:

> On 6/26/2013 6:43 AM, a.cavallo at cavallinux.eu wrote:
>> .. or having hg "purging" unwanted build artifact (probably cleaning up
>> the .hgignore file first)
> 
> How would that work? How could hg purge the .bak, .orig, .rej, .old,
> etc. files?
> 
>>>> find $(srcdir)/* ...
>>>> 
>>>> to avoid this problem. It won't expand the .hg top-level directory.
>>> 
>>>   Or find \( -type d -name .hg -prune \) -o ...
> 
> I'm torn. Yours is more obvious, but we'd likely need to add .svn, .git,
> etc. Maybe find $(srcdir)/[a-zA-Z]* ... would be good enough to ignore
> all dot directories/files?

Is the find command in the distclean target still needed? The comment for the distclean target says it is used to clean up the tree for distribution, but that's easier to accomplish by using a clean checkout.

The target is still useful to get a clean tree when you're building with srcdir == builddir, but you don't need the find command for that.

Ronald



More information about the Python-Dev mailing list