X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fsort_glossary.pl;h=e0bc552a645f482445d5be33b3b662cead324aa0;hb=HEAD;hp=babbea04158404e0b38d332f4fd47e91482d3c60;hpb=b30245c8e92ecaf8fb877189d7620a5a9a205120;p=git.git diff --git a/Documentation/sort_glossary.pl b/Documentation/sort_glossary.pl index babbea04..e0bc552a 100644 --- a/Documentation/sort_glossary.pl +++ b/Documentation/sort_glossary.pl @@ -42,14 +42,13 @@ sub no_spaces ($) { print 'GIT Glossary ============ -Aug 2005 This list is sorted alphabetically: '; @keys=sort {uc($a) cmp uc($b)} keys %terms; -$pattern='(\b'.join('\b|\b',reverse @keys).'\b)'; +$pattern='(\b(?>";/eg; print '[[ref_'.no_spaces($key).']]'.$key."::\n"