I have created a simple Perl script that will locally store every xkcd comic and generate a HTML file to view all xkcd comics on a single page. After the initial run of this script, each additional run will do incremental updates (only new comics will be downloaded since the last time the script was executed).
The script can be run from a command line:
or, by setting xkcd.pl to executable and running it as:
The latest revision of the code can be found on Github. Please read the README file on Github for Perl requirements.