[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | I add a arg to awk: -v top_srcdir="$(top_srcdir)" | then I add a function: | function fixupfilename() | { | fna=FILENAME; | sub(top_srcdir "/", ", fna); | return fna; | }
I changed the function to: function fixupfilename() { return substr(FILENAME, length(top_srcdir "/") + 1); } Simpler and probably faster. And should work correctly with builddir == srcdir. (I'll check that now.) -- Lgb