[mythtv] use of src->mythtv/mythtv symbolic link

Hans Dingemans jpldingemans at gmail.com
Fri Feb 14 18:57:40 UTC 2020


On Fri, Feb 14, 2020 at 12:33 PM Peter Bennett <pb.mythtv at gmail.com> wrote:

>
>
> On 2/14/20 11:07 AM, Hans Dingemans wrote:
> > This is probably a stupid question, but every time when I'm grepping
> > for some piece of code, grep searches the code tree twice, and on the
> > second run it detects src/src recursive directory loop.
> >
> > What is the use of this symbolic link? Can we get rid of it?
> >
> I don't know what src is for, it gets created when you build. I have
> never had the grep problem. I use egrep -r. -r follows symbolic links
> only if they are on the command line. You must be using -R. Any reason
> for using -R rather than -r?
>
> FWIW I do a lot of greps, so I have a bash script as follows:
>
> egrep -a -r -n "--include=*.c" "--include=*.cpp" "--include=*.h" \
>    "--include=*.java" "--exclude=moc_*" "--include=*.xml"
> --exclude-dir=build \
>    --exclude-dir=.idea --exclude-dir=ffmpeg "$@" 2>&1 | less
>
>
> Peter
>
I guess the -R is just a bad habit I now have to get rid of, thanks for the
tip & the script!

Hans.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20200214/bfae9881/attachment.htm>


More information about the mythtv-dev mailing list