From bfbd68269e23d4b914eeb03f46f7d6f2c2e9a2aa Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Sun, 19 Sep 2010 03:17:30 -0700 Subject: Changed it to separately checkin/out each time. Now wikiscraper won't leave checkouts hanging around, whether or not you want them. --- wikiscraper.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wikiscraper.pl') diff --git a/wikiscraper.pl b/wikiscraper.pl index a482bcb..16ad895 100755 --- a/wikiscraper.pl +++ b/wikiscraper.pl @@ -15,6 +15,8 @@ while (defined (my $page = $dumpfile->next)) my @revs = $page->revision; foreach (@revs) { + system("co", "-l", $page->title); + open (FILE, ">", $page->title); print FILE $_->text; close FILE; @@ -33,7 +35,6 @@ while (defined (my $page = $dumpfile->next)) ($_->comment ne "" ? "-m" . $_->comment : "-mNo message"), "-r" . $_->id, "-w" . $user, - "-l", $page->title, ); -- cgit v1.2.3