Skip to content

Commit

Permalink
Item000: Fix build scripts for core extensions
Browse files Browse the repository at this point in the history
EditRowPlugin and ModPerlEngineContrib would not upload after
building Foswiki 2.1.3.  The build.pl modules were out of date.
  • Loading branch information
gac410 committed Feb 14, 2017
1 parent e4f2c9d commit 13c187e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
27 changes: 6 additions & 21 deletions EditRowPlugin/lib/Foswiki/Plugins/EditRowPlugin/build.pl
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
#!/usr/bin/env perl
use strict;
use warnings;

BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }

#!/usr/bin/perl -w
BEGIN {
unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} );
}
use Foswiki::Contrib::Build;

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

# Set the details of the repository for uploads.
# This can be any web on any accessible TWiki installation.

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

# Full URL of pub directory
$build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub';

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

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

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

Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
use strict;
use warnings;

BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }

use Foswiki::Contrib::Build;

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

# (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!

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

# Full URL of pub directory
$build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub';

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

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

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

0 comments on commit 13c187e

Please sign in to comment.