On Sun, Jul 20, 2003 at 12:08:30PM +1000, Aníbal Monsalve Salazar wrote: [...] > To test your 'closes:' statement (there are other variations) against > the regular expression, do something like this: > > echo 'closes: #201365' | perl -ne 'print "ok\n" if > /closes:\s*(?:bug)?\#\s*\d+(?:,\s*(?:bug)?\#\s*\d+)*/ig' > ok [...]
I am sure this can implemented in TeX, too. :-) Nevertheless I think the straightforward solution is the best one: Check the changes file or the output of dpkg-parsechangelog for a Closes: line. cu andreas