X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0f9c9190ee2710105d1ab6fdd8f873754a5d65a8..735493837b036f5609f42a363c7f58f04525194c:/script/misc/update-wiki-pages diff --git a/script/misc/update-wiki-pages b/script/misc/update-wiki-pages index f6348b625..ffb11052e 100644 --- a/script/misc/update-wiki-pages +++ b/script/misc/update-wiki-pages @@ -1,4 +1,5 @@ #!/usr/bin/env perl +use 5.010; use strict; use warnings; @@ -25,6 +26,10 @@ update-wiki-pages - Scrape the wiki for key/value wiki description pages perl script/misc/update-wiki-pages config/wiki_pages.yml +Or with prove(1): + + prove -e 'perl script/misc/update-wiki-pages' config/wiki_pages.yml + =cut # Get the command-line options @@ -60,7 +65,7 @@ for my $lang ('', map { "${_}:" } qw[ Pt Fi De It HU Cz Fr RU Pl ]) { # Value pages ok(1, " Getting value pages"); - my $cnt = stick_content_in_hash("tag", "Template:${lang}ValueDescription", \%feature); + $cnt = stick_content_in_hash("tag", "Template:${lang}ValueDescription", \%feature); ok(1, " Got $cnt value pages"); $count{value} += $cnt; }