This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to correctly rebase?


On Oct 16, 2015, at 1:18 AM, Achim Gratz wrote:
> 
> Warren Young writes:
>> It would be nice if rebase were smart enough to look for *.mex and *.oct
> only in known Octave directories, but
>> it isnât my itch, so Iâm not going to be doing anything about it.
> 
> I'll see if that's possible without running yet another find

How about something like 

    find /usr -name ${extensions} | grep -vP '(?<!octave)mex' | ditto-for-oct

The syntax isnât vetted, but basically Iâm saying that GNU grepâs Perl-compatible regex mode supports negative lookbehind, which seems like it should do what you want here.

Iâve restricted it to /usr on the theory that DLLs will always be in /bin, /usr/bin, /usr/lib/*, or /usr/share/*, and that /bin and /usr/bin are the same on Cygwin.  Are there any official Cygwin packages that put them elsewhere?
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]