comirror-setup - Set up a directory to be used by comirror
comirror-setup comis urls...
comirror-setup takes three URL arguments: The very first page of the web comic, the second page, and the last but one page.
Based on these arguments, it tries to set up the current working directory so that you only need to call comirror to mirror the webcomic you were pointing to. It does this by comparing the last two URLs to determine a correct regular expression for the comic images and comparing the first two to figure out the text on the "next" link.
It then creates comirror.conf and comirror.state so that you only need to call comirror(1) to start downloading.
Unless all options (or --batch) were specified on the commandline, comirror will interactively ask the user for further options.
Do not ask questions interactively. Take default values or those specified via options on the commandline.
First try downloading a link matching image_re, and if that fails look for an image matching image_re. Note that this does not (yet) affect image_re detection.
Non-zero on grave errors, zero otherwise.
comirror-setup is not configurable.
This script requires the perl module WWW::Mechanize.
As for comirror: This script has no brain. So far, this script is very dumb and fragile. It's recommended to take a quick glance at the image_re before actually calling comirror to make sure you get what you want.
Copyright (C) 2010 by Daniel Friesel <derf@chaosdorf.de>
0. You just DO WHAT THE FUCK YOU WANT TO.