]> git.openstreetmap.org Git - rails.git/blobdiff - script/misc/update-wiki-pages
Mention how to run this script with prove(1)
[rails.git] / script / misc / update-wiki-pages
index f6348b625cef7bfb8a575e6d2020d06f7e5a6d51..c8fe83fb2da7df1dd53bd116926abcb092db0920 100644 (file)
@@ -25,6 +25,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 +64,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;
 }