|
From: | Marcus Harnisch |
Subject: | Re: Feature request: file list |
Date: | Wed, 12 Oct 2016 11:09:55 +0200 |
Sure. You can get 'skip list' from the hook.[gen.sh]gtags --conf=skipThe skip list is always active even if you are using 'gtags.files'.Regards,Shigio2016-10-11 17:11 GMT+09:00 Marcus Harnisch <address@hidden>:MarcusBest regardsHi ShigioThat would be a very powerful facility indeed and certainly enable me to achieve what I intend. Perhaps you could consider passing the skip list (perhaps any config variables that make sense) from gtags.conf to the hook by means of environment variables, so users could reference a standard generator and maintain their skip lists inside a local config file.On Tue, Oct 11, 2016 at 12:41 AM, Shigio YAMAGUCHI <address@hidden> wrote:Hi,I will add new config variable 'gtags_hook' for gtags(1).gtags_hook (command line)Specify a command line which should be executed before the gtags'sjob. "./" in it always means the project root directory, sincegtags is always invoked there.This hook might realize your requirement.------------------------------------------------ [gtags.conf]------------------------------------------------ :gtags_hook=./gen.sh < spec.in > gtags.files:------------------------------------------------ [gen.sh]------------------------------------------------ #!/bin/shwhile read linedocase $line in*/) line=`echo $line | sed 's!/$!!'` # remove '/'find $line -type f -print;;*) eval "echo $line";;esacdone------------------------------------------------ [spec.in]------------------------------------------------ src/lib/test.csrc/$VAR/test.hsrc/system/------------------------------------------------ The contents of the 'gtags.files' will be something like this.src/lib/test.csrc/bbbbb/test.hsrc/system/a.csrc/system/b.hWhat do you think?Regards,Shigio2016-10-10 23:23 GMT+09:00 Marcus Harnisch <address@hidden>:______________________________Marcus2. Could the file list expand environment variables of the form $VAR and ${VAR}?Hi ShigioWorking on a large, fragmented project, I would like to see two features:1. The file list requires each record to be a file name. Would it be possible making names ending in ‘/’ start a new search hierarchy (respecting skip rules) etc? That way the list itself wouldn't have to change when updating.
Best regards_________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global
--Shigio YAMAGUCHI <address@hidden>PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3--Shigio YAMAGUCHI <address@hidden>PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
[Prev in Thread] | Current Thread | [Next in Thread] |