X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c4154e8a45615ab99f22aa2cfe42788f1ce974cc..c0d0482f99634c1ac156bd628d51c7f72e62e5bc:/ikiwiki-calendar.in?ds=inline diff --git a/ikiwiki-calendar.in b/ikiwiki-calendar.in index 037ef7df4..d3e31b6db 100755 --- a/ikiwiki-calendar.in +++ b/ikiwiki-calendar.in @@ -1,7 +1,8 @@ #!/usr/bin/perl +no lib '.'; use warnings; use strict; -use lib '.'; # For use in nonstandard directory, munged by Makefile. +use FindBin; use lib $FindBin::Bin; # For use in nonstandard directory, munged by Makefile. use IkiWiki; use IkiWiki::Setup; use Getopt::Long; @@ -62,5 +63,5 @@ foreach my $y ($startyear..$endyear) { IkiWiki::rcs_commit_staged(message => gettext("calendar update")) if $config{rcs}; -exec("ikiwiki", "-setup", $setup, "-refresh"); -die "failed to run ikiwiki -setup $setup -refresh\n"; +exec("ikiwiki", "--setup", $setup, "--refresh"); +die "failed to run ikiwiki --setup $setup --refresh\n";