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's
job. "./" in it always means the project root directory, since
gtags is always invoked there.
This hook might realize your requirement.
------------------------------------------------
[gtags.conf]
------------------------------------------------
:gtags_hook=./gen.sh <
spec.in > gtags.files:
------------------------------------------------
[gen.sh]
------------------------------------------------
#!/bin/sh
while read line
do
case $line in
*/) line=`echo $line | sed 's!/$!!'` # remove '/'
find $line -type f -print
;;
*) eval "echo $line"
;;
esac
done
------------------------------------------------
------------------------------------------------
src/lib/test.c
src/$VAR/test.h
src/system/
------------------------------------------------
The contents of the 'gtags.files' will be something like this.
src/lib/test.c
src/bbbbb/test.h
src/system/a.c
src/system/b.h
What do you think?
Regards,
Shigio