The recent setup revamp exposed some latent bugs in use/package ordering
that caused some symbols to not the exported into the correct scope.
12 files changed:
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
use open qw{:utf8 :std};
use Encode;
use open qw{:utf8 :std};
use Encode;
sub printheader ($) { #{{{
my $session=shift;
sub printheader ($) { #{{{
my $session=shift;
#!/usr/bin/perl
# Stubs for no revision control.
#!/usr/bin/perl
# Stubs for no revision control.
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
sub rcs_update () {
# Update working directory to current version.
# (May be more complex for distributed RCS.)
sub rcs_update () {
# Update working directory to current version.
# (May be more complex for distributed RCS.)
use warnings;
use strict;
use IkiWiki;
use Encode;
use open qw{:utf8 :std};
use warnings;
use strict;
use IkiWiki;
use Encode;
use open qw{:utf8 :std};
sub bzr_log ($) { #{{{
my $out = shift;
my @infos = ();
sub bzr_log ($) { #{{{
my $out = shift;
my @infos = ();
use warnings;
use strict;
use IkiWiki;
use Encode;
use open qw{:utf8 :std};
use warnings;
use strict;
use IkiWiki;
use Encode;
use open qw{:utf8 :std};
my $sha1_pattern = qr/[0-9a-fA-F]{40}/; # pattern to validate Git sha1sums
my $dummy_commit_msg = 'dummy commit'; # message to skip in recent changes
my $sha1_pattern = qr/[0-9a-fA-F]{40}/; # pattern to validate Git sha1sums
my $dummy_commit_msg = 'dummy commit'; # message to skip in recent changes
use warnings;
use strict;
use IkiWiki;
use Encode;
use open qw{:utf8 :std};
use warnings;
use strict;
use IkiWiki;
use Encode;
use open qw{:utf8 :std};
sub mercurial_log($) {
my $out = shift;
my @infos;
sub mercurial_log($) {
my $out = shift;
my @infos;
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
use Date::Parse qw(str2time);
use Date::Format qw(time2str);
use Date::Parse qw(str2time);
use Date::Format qw(time2str);
my $sha1_pattern = qr/[0-9a-fA-F]{40}/; # pattern to validate sha1sums
sub check_config() { #{{{
my $sha1_pattern = qr/[0-9a-fA-F]{40}/; # pattern to validate sha1sums
sub check_config() { #{{{
+package IkiWiki::Rcs::svn;
+
use warnings;
use strict;
use IkiWiki;
use POSIX qw(setlocale LC_CTYPE);
use warnings;
use strict;
use IkiWiki;
use POSIX qw(setlocale LC_CTYPE);
-package IkiWiki::Rcs::svn;
-
sub import { #{{{
if (exists $IkiWiki::config{svnpath}) {
# code depends on the path not having extraneous slashes
sub import { #{{{
if (exists $IkiWiki::config{svnpath}) {
# code depends on the path not having extraneous slashes
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
sub quiet_system (@) {
# See Debian bug #385939.
open (SAVEOUT, ">&STDOUT");
sub quiet_system (@) {
# See Debian bug #385939.
open (SAVEOUT, ">&STDOUT");
# IkiWiki::Setup::$raw_setup, to pass it back to this module.
package IkiWiki::Setup;
# IkiWiki::Setup::$raw_setup, to pass it back to this module.
package IkiWiki::Setup;
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
use open qw{:utf8 :std};
our $raw_setup;
use open qw{:utf8 :std};
our $raw_setup;
# Parameters to import should be all the standard ikiwiki config stuff,
# plus an array of wrappers to set up.
# Parameters to import should be all the standard ikiwiki config stuff,
# plus an array of wrappers to set up.
+package IkiWiki::Setup::Standard;
+
use warnings;
use strict;
use warnings;
use strict;
-use IkiWiki::Wrapper;
-use IkiWiki::Render;
-
-package IkiWiki::Setup::Standard;
sub import {
$IkiWiki::Setup::raw_setup=$_[1];
sub import {
$IkiWiki::Setup::raw_setup=$_[1];
use warnings;
use strict;
use Storable;
use IkiWiki;
use warnings;
use strict;
use Storable;
use IkiWiki;
sub userinfo_retrieve () { #{{{
my $userinfo=eval{ Storable::lock_retrieve("$config{wikistatedir}/userdb") };
return $userinfo;
sub userinfo_retrieve () { #{{{
my $userinfo=eval{ Storable::lock_retrieve("$config{wikistatedir}/userdb") };
return $userinfo;
use warnings;
use strict;
use Cwd q{abs_path};
use Data::Dumper;
use IkiWiki;
use warnings;
use strict;
use Cwd q{abs_path};
use Data::Dumper;
use IkiWiki;
sub gen_wrapper () { #{{{
$config{srcdir}=abs_path($config{srcdir});
$config{destdir}=abs_path($config{destdir});
sub gen_wrapper () { #{{{
$config{srcdir}=abs_path($config{srcdir});
$config{destdir}=abs_path($config{destdir});