>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> sure it is. (I am not sure about submatches...) Lars> What are you trying to do exactly? Something like layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc LC_ALL=C ; export LC_ALL ; \ awk -v top_srcdir="$(top_srcdir)" ' \ function fixupfilename() \ {\ return substr(FILENAME, length(top_srcdir "/") + 1);\ }\ /^[[:space:]]*(Style|GuiName|ListName)[[:space:]]+/ { \ line=$$0; \ sub(/[[:space:]]*THEMATCH[[:space:]]*/, "", line); \ gsub(/"/, "", line); \ printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \ fixupfilename(), FNR, line); \ } \ ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc > $@ However, I do not know how to get the value of THEMATCH. This would allow for example to add support for LabelString quite easily. JMarc