This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to correctly rebase?
- From: Warren Young <wyml at etr-usa dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Fri, 16 Oct 2015 14:11:39 -0600
- Subject: Re: How to correctly rebase?
- Authentication-results: sourceware.org; auth=none
- References: <22046 dot 25592 dot 311399 dot 765933 at woitok dot gmail dot com> <8925F252-F479-4990-B568-1EC612DF39A5 at etr-usa dot com> <22047 dot 42793 dot 36600 dot 773496 at woitok dot gmail dot com> <41C9E795-AEEC-4378-8548-44DAF7DB98E7 at etr-usa dot com> <loom dot 20151016T091146-977 at post dot gmane dot org>
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