|
From: | Marcus Harnisch |
Subject: | Re: Feature request: file list |
Date: | Tue, 11 Oct 2016 10:11:04 +0200 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |