Skip to content

Commit

Permalink
Item13907: Fix build.pl to get upload to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Jun 1, 2017
1 parent 1bf1604 commit bbb8d41
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions UpdatesPlugin/lib/Foswiki/Plugins/UpdatesPlugin/build.pl
@@ -1,26 +1,15 @@
#!/usr/bin/perl -w
BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }
use Foswiki::Contrib::Build;

# Create the build object
$build = new Foswiki::Contrib::Build('UpdatesPlugin');

# (Optional) Set the details of the repository for uploads.
# This can be any web on any accessible Foswiki installation.
# These defaults will be used when expanding tokens in .txt
# files, but be warned, they can be overridden at upload time!
# Standard preamble
use strict;
use warnings;

# name of web to upload to
$build->{UPLOADTARGETWEB} = 'Extensions';

# Full URL of pub directory
$build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub';
BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }

# Full URL of bin directory
$build->{UPLOADTARGETSCRIPT} = 'http://foswiki.org/bin';
use Foswiki::Contrib::Build;

# Script extension
$build->{UPLOADTARGETSUFFIX} = '';
# Create the build object
my $build = new Foswiki::Contrib::Build('UpdatesPlugin');

# Build the target on the command line, or the default target
$build->build( $build->{target} );
Expand Down

0 comments on commit bbb8d41

Please sign in to comment.