User:AnomieBOT/source/tasks/SourceUploader.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: General: * New function to load a task (once). * Update the various scripts to use that function. * Update metadata for all tasks. SourceUploader: * Generate a new file, User:AnomieBOT/TaskList, since I keep forgetting
AnomieBOT (talk | contribs)
Updating published sources: General: * Have bot.pl set $0, for more useful ps output. * New utility function to return the bot base directory. SourceUploader: * Use said new utility function.
Line 64:
$self->{'order'}=-1000;
 
my $basedir=$0AnomieBOT::Task::basedir;
$basedir=~s{/[^/]*$}{};
if(!-d $basedir){
$self->warn("Cannot find source directory\n");
return $self;
}
 
$self->{'summary'}='Updating published sources: ';
if(!open(X, "<", 'ChangeLog')){