Re: [PATCH 2/3] Makefile: use `find` to determine static header dependencies
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 25, 2014, 22:08 UTC
- Message-ID
- <xmqq4mx0kyrx.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20140825212705.GU20185@google.com>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 9 quoted lines
>> Wouldn't it be sufficient to start digging not from "*" but from >> "??*"? > > Gah, the * was supposed to be . in my examples (though it doesn't > hurt). > >> find ??* \( -name Documentation -o -name .\?\* \) -prune -o -name \*.h > > Heh. Yeah, that would work. ;-)
Continuing useless discussion...
Actually as you are not excluding CVS, RCS, etc., and using ??* as the starting point will exclude .git, .hg, etc. at the top, I think we can shorten it even further and say
find ??* -name Documentation -prune -o -name \*.h
or something.
...and time to go back to something more serious and practical.
Don't we want to exclude contrib/ by the way?