projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reply
[ikiwiki.git]
/
ikiwiki-calendar.in
diff --git
a/ikiwiki-calendar.in
b/ikiwiki-calendar.in
index cdfecff3f3a41e2c5c2ff3d2ef9230eb1453d6df..60df99855df63a8a248b78616911359035477a1a 100755
(executable)
--- a/
ikiwiki-calendar.in
+++ b/
ikiwiki-calendar.in
@@
-15,7
+15,10
@@
GetOptions(
"force" => \$force,
) || usage();
my $setup=shift || usage();
"force" => \$force,
) || usage();
my $setup=shift || usage();
-my $pagespec=shift;
+my $pagespec;
+if (@ARGV && $ARGV[0] !~ /^\d+$/) {
+ $pagespec=shift;
+}
my $startyear=shift || 1900+(localtime(time))[5];
my $endyear=shift || $startyear;
my $startyear=shift || 1900+(localtime(time))[5];
my $endyear=shift || $startyear;
@@
-56,7
+59,7
@@
foreach my $y ($startyear..$endyear) {
}
}
}
}
-IkiWiki::rcs_commit_staged(
gettext("calendar update"), undef, undef
)
+IkiWiki::rcs_commit_staged(
message => gettext("calendar update")
)
if $config{rcs};
exec("ikiwiki", "-setup", $setup, "-refresh");
if $config{rcs};
exec("ikiwiki", "-setup", $setup, "-refresh");