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

Peter Bennett pb.mythtv at gmail.com
Fri Feb 14 17:32:46 UTC 2020



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


More information about the mythtv-dev mailing list