bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symbolic links, unreadable files, skip


From: Shigio YAMAGUCHI
Subject: Re: symbolic links, unreadable files, skip
Date: Thu, 27 Aug 2015 20:25:10 +0900

>> To get an appropriate permission bears a better result, I think.
>
> Of course, but not always feasible. Lots of bureaucracy involved.

OK. I understand well that ignoring is needed. But it is not a job
of gtags, I think.

>> If you would like to skip unreadable files, you can use cp(1)
>> like follows:
>
> I know that this would be an alternative but not very convenient
> at all. Sorry.

How about the following?

$ makelist.sh | gtags -f -

[makelist.sh]
+--------------------------------------------------------------------
|#!/bin/sh
|# Make an available file list.
|find . -type f -print | while read f; do [ -r $f ] && echo $f; done

Regards
Shigio


2015-08-27 16:56 GMT+09:00 Marcus Harnisch <address@hidden>:
Hi Shigio

Thanks for the quick respsonse.

On Thu, Aug 27, 2015 at 2:39 AM, Shigio YAMAGUCHI <address@hidden> wrote:
I don't think such option is useful. Because something obtained
with that is an incomplete one.

Incomplete, yes. If completeness of the entire directory tree was a critical goal enforcing such behavior wouldn't be useful. But we are talking about an option. Let's just assume that for the moment I might only be interested in files of certain types which I know are all available but I can't be bothered to create a manual list for.

Not my actual situation but a very similar example: Embedded OS kernel alongside user mode applications and libraries. I know the common project root and this is where I want to execute gtags. Whether I can access the kernel and all other applications and libraries may not be interesting, initially. Yet I want to tag one specific application plus all required libraries, except I don't know which of the libraries are needed.
The project might contain legacy that isn't particularly pretty but an unfortunate fact (welcome to the Real World), so the application I care about may pull in code from another application, sidestepping a proper API, etc. From compiling my application I know that everything I seem to need is there, but I don't want to go through a compile log manually to pick out the stuff I seem to need. I'd rather want gtags to support me (optionally!).

To get an appropriate permission bears a better result, I think.

Of course, but not always feasible. Lots of bureaucracy involved.
 
By the way, gtags ignores orphaned symbolic links.

Good to know, thanks.

If you would like to skip unreadable files, you can use cp(1)
like follows:

I know that this would be an alternative but not very convenient at all. Sorry.

Best regards
Marcus



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]