delete @ENV{qw{IFS CDPATH ENV BASH_ENV}};
package IkiWiki;
+our $version='unknown'; # VERSION_AUTOREPLACE done by Makefile, DNE
+
use warnings;
use strict;
use lib '.'; # For use without installation, removed by Makefile.
},
"pingurl" => sub {
push @{$config{pingurl}}, $_[1];
- }
+ },
+ "version" => sub {
+ print "ikiwiki version $version\n";
+ exit;
+ },
) || usage();
if (! $config{setup}) {