Permalink
Browse files

Item14474: clean up build.pl scripts

  • Loading branch information...
1 parent 7f54afb commit 91fee261ecc7e21e8d88f31b33db11d5a2cfa420 MichaelDaum committed Sep 13, 2017
Showing with 43 additions and 373 deletions.
  1. +1 −1 AutoViewTemplatePlugin/lib/Foswiki/Plugins/AutoViewTemplatePlugin/build.pl
  2. +1 −1 BehaviourContrib/lib/Foswiki/Contrib/BehaviourContrib/build.pl
  3. +1 −1 BuildContrib/build.pl
  4. +1 −1 BuildContrib/lib/Foswiki/Contrib/BuildContrib/build.pl
  5. +1 −1 CommentPlugin/lib/Foswiki/Plugins/CommentPlugin/build.pl
  6. +1 −1 CompareRevisionsAddOn/lib/Foswiki/Contrib/CompareRevisionsAddOn/build.pl
  7. +1 −1 DEL_ImageGalleryPlugin/lib/Foswiki/Plugins/ImageGalleryPlugin/build.pl
  8. +1 −1 EditTablePlugin/lib/Foswiki/Plugins/EditTablePlugin/build.pl
  9. +1 −66 EmptyJQueryPlugin/lib/Foswiki/Plugins/EmptyJQueryPlugin/build.pl
  10. +3 −3 EmptyPlugin/lib/Foswiki/Plugins/EmptyPlugin/build.pl
  11. +1 −15 FamFamFamContrib/lib/Foswiki/Contrib/FamFamFamContrib/build.pl
  12. +1 −1 HistoryPlugin/lib/Foswiki/Plugins/HistoryPlugin/build.pl
  13. +1 −18 HomePagePlugin/lib/Foswiki/Plugins/HomePagePlugin/build.pl
  14. +1 −1 InterwikiPlugin/lib/Foswiki/Plugins/InterwikiPlugin/build.pl
  15. +1 −1 JSCalendarContrib/lib/Foswiki/Contrib/JSCalendarContrib/build.pl
  16. +1 −1 MailerContrib/lib/Foswiki/Contrib/MailerContrib/build.pl
  17. +1 −66 PatchFoswikiContrib/lib/Foswiki/Contrib/PatchFoswikiContrib/build.pl
  18. +1 −1 PatternSkin/lib/Foswiki/Contrib/PatternSkin/build.pl
  19. +1 −62 PlainFileStoreContrib/lib/Foswiki/Contrib/PlainFileStoreContrib/build.pl
  20. +1 −1 PreferencesPlugin/lib/Foswiki/Plugins/PreferencesPlugin/build.pl
  21. +3 −3 PubLinkFixupPlugin/lib/Foswiki/Plugins/PubLinkFixupPlugin/build.pl
  22. +1 −1 QueryAcceleratorPlugin/lib/Foswiki/Plugins/QueryAcceleratorPlugin/build.pl
  23. +1 −62 RCSStoreContrib/lib/Foswiki/Contrib/RCSStoreContrib/build.pl
  24. +1 −1 RenderFormPlugin/lib/Foswiki/Plugins/RenderFormPlugin/build.pl
  25. +1 −1 RenderListPlugin/lib/Foswiki/Plugins/RenderListPlugin/build.pl
  26. +1 −1 SmiliesPlugin/lib/Foswiki/Plugins/SmiliesPlugin/build.pl
  27. +1 −1 SpreadSheetPlugin/lib/Foswiki/Plugins/SpreadSheetPlugin/build.pl
  28. +1 −1 SubscribePlugin/lib/Foswiki/Plugins/SubscribePlugin/build.pl
  29. +1 −1 TWikiCompatibilityPlugin/lib/Foswiki/Plugins/TWikiCompatibilityPlugin/build.pl
  30. +1 −1 TablePlugin/lib/Foswiki/Plugins/TablePlugin/build.pl
  31. +1 −1 TestFixturePlugin/lib/Foswiki/Plugins/TestFixturePlugin/build.pl
  32. +1 −1 TipsContrib/lib/Foswiki/Contrib/TipsContrib/build.pl
  33. +2 −18 TopicUserMappingContrib/lib/Foswiki/Contrib/TopicUserMappingContrib/build.pl
  34. +1 −1 TwistyPlugin/lib/Foswiki/Plugins/TwistyPlugin/build.pl
  35. +1 −18 UnitTestContrib/lib/Foswiki/Contrib/UnitTestContrib/build.pl
  36. +1 −1 WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/build.pl
  37. +1 −15 ZonePlugin/lib/Foswiki/Plugins/ZonePlugin/build.pl
  38. +1 −1 core/lib/Foswiki/Contrib/core/build.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Example build class. Copy this file to the equivalent place in your
# plugin or contrib and edit.
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for BehaviourContrib
#
View
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
unless ( scalar(@ARGV) ) {
print <<DOC;
Build an extension
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Example build class. Copy this file to the equivalent place in your
# plugin or contrib and edit.
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
use strict;
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for CompareRevisionsAddOn
#
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for ImageGalleryPlugin
#
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for EditTablePlugin
#
@@ -1,75 +1,10 @@
-#!/usr/bin/perl -w
-#
-# Example build class. Copy this file to the equivalent place in your
-# plugin or contrib and edit.
-#
-# Read the comments at the top of lib/Foswiki/Contrib/Build.pm for
-# details of how the build process works, and what files you
-# have to provide and where.
-#
-# Requires the environment variable FOSWIKI_LIBS (a colon-separated path
-# list) to be set to point at the build system and any required dependencies.
-# Usage: ./build.pl [-n] [-v] [target]
-# where [target] is the optional build target (build, test,
-# install, release, uninstall), test is the default.
-# Two command-line options are supported:
-# -n Don't actually do anything, just print commands
-# -v Be verbose
-#
-
-# Standard preamble
+#!/usr/bin/env perl
use strict;
use warnings;
BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }
use Foswiki::Contrib::Build;
-# Create the build object
my $build = new Foswiki::Contrib::Build('EmptyJQueryPlugin');
-
-# Build the target on the command line, or the default target
$build->build( $build->{target} );
-
-=begin TML
-
-You can do a lot more with the build system if you want; for example, to add
-a new target, you could do this:
-
-<verbatim>
-{
- package MyModuleBuild;
- our @ISA = qw( Foswiki::Contrib::Build );
-
- sub new {
- my $class = shift;
- return bless( $class->SUPER::new( "MyModule" ), $class );
- }
-
- sub target_mytarget {
- my $this = shift;
- # Do other build stuff here
- }
-}
-
-# Create the build object
-my $build = new MyModuleBuild();
-</verbatim>
-
-You can also specify a different default target server 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!
-
-<verbatim>
-# 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} = '';
-</verbatim>
-
-=cut
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Example build class. Copy this file to the equivalent place in your
# plugin or contrib and edit.
@@ -65,9 +65,9 @@
# name of web to upload to
$build->{UPLOADTARGETWEB} = 'Extensions';
# Full URL of pub directory
-$build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub';
+$build->{UPLOADTARGETPUB} = 'https://foswiki.org/pub';
# Full URL of bin directory
-$build->{UPLOADTARGETSCRIPT} = 'http://foswiki.org/bin';
+$build->{UPLOADTARGETSCRIPT} = 'https://foswiki.org/bin';
# Script extension
$build->{UPLOADTARGETSUFFIX} = '';
</verbatim>
@@ -1,24 +1,10 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
BEGIN {
unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} );
}
use Foswiki::Contrib::Build;
-# Create the build object
$build = new Foswiki::Contrib::Build('FamFamFamContrib');
-# 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} = '';
-
-# Build the target on the command line, or the default target
$build->build( $build->{target} );
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for HistoryPlugin
#
@@ -1,27 +1,10 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }
use Foswiki::Contrib::Build;
# Create the build object
$build = new Foswiki::Contrib::Build('HomePagePlugin');
-# (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} = '';
-
# Build the target on the command line, or the default target
$build->build( $build->{target} );
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for InterwikiPlugin
#
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Example build class. Copy this file to the equivalent place in your
# plugin or contrib and edit.
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
BEGIN {
@@ -1,75 +1,10 @@
-#!/usr/bin/perl -w
-#
-# Example build class. Copy this file to the equivalent place in your
-# plugin or contrib and edit.
-#
-# Read the comments at the top of lib/Foswiki/Contrib/Build.pm for
-# details of how the build process works, and what files you
-# have to provide and where.
-#
-# Requires the environment variable FOSWIKI_LIBS (a colon-separated path
-# list) to be set to point at the build system and any required dependencies.
-# Usage: ./build.pl [-n] [-v] [target]
-# where [target] is the optional build target (build, test,
-# install, release, uninstall), test is the default.
-# Two command-line options are supported:
-# -n Don't actually do anything, just print commands
-# -v Be verbose
-#
-
-# Standard preamble
+#!/usr/bin/env perl
use strict;
use warnings;
BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }
use Foswiki::Contrib::Build;
-# Create the build object
my $build = new Foswiki::Contrib::Build('PatchFoswikiContrib');
-
-# Build the target on the command line, or the default target
$build->build( $build->{target} );
-
-=begin TML
-
-You can do a lot more with the build system if you want; for example, to add
-a new target, you could do this:
-
-<verbatim>
-{
- package MyModuleBuild;
- our @ISA = qw( Foswiki::Contrib::Build );
-
- sub new {
- my $class = shift;
- return bless( $class->SUPER::new( "MyModule" ), $class );
- }
-
- sub target_mytarget {
- my $this = shift;
- # Do other build stuff here
- }
-}
-
-# Create the build object
-my $build = new MyModuleBuild();
-</verbatim>
-
-You can also specify a different default target server 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!
-
-<verbatim>
-# 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} = '';
-</verbatim>
-
-=cut
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
BEGIN {
@@ -1,23 +1,4 @@
-#!/usr/bin/perl -w
-#
-# Example build class. Copy this file to the equivalent place in your
-# plugin or contrib and edit.
-#
-# Read the comments at the top of lib/Foswiki/Contrib/Build.pm for
-# details of how the build process works, and what files you
-# have to provide and where.
-#
-# Requires the environment variable FOSWIKI_LIBS (a colon-separated path
-# list) to be set to point at the build system and any required dependencies.
-# Usage: ./build.pl [-n] [-v] [target]
-# where [target] is the optional build target (build, test,
-# install, release, uninstall), test is the default.
-# Two command-line options are supported:
-# -n Don't actually do anything, just print commands
-# -v Be verbose
-#
-
-# Standard preamble
+#!/usr/bin/env perl
use strict;
use warnings;
@@ -31,45 +12,3 @@
# Build the target on the command line, or the default target
$build->build( $build->{target} );
-=begin TML
-
-You can do a lot more with the build system if you want; for example, to add
-a new target, you could do this:
-
-<verbatim>
-{
- package MyModuleBuild;
- our @ISA = qw( Foswiki::Contrib::Build );
-
- sub new {
- my $class = shift;
- return bless( $class->SUPER::new( "MyModule" ), $class );
- }
-
- sub target_mytarget {
- my $this = shift;
- # Do other build stuff here
- }
-}
-
-# Create the build object
-my $build = new MyModuleBuild();
-</verbatim>
-
-You can also specify a different default target server 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!
-
-<verbatim>
-# 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} = '';
-</verbatim>
-
-=cut
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Build for PreferencesPlugin
#
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Example build class. Copy this file to the equivalent place in your
# plugin or contrib and edit.
@@ -65,9 +65,9 @@
# name of web to upload to
$build->{UPLOADTARGETWEB} = 'Extensions';
# Full URL of pub directory
-$build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub';
+$build->{UPLOADTARGETPUB} = 'https://foswiki.org/pub';
# Full URL of bin directory
-$build->{UPLOADTARGETSCRIPT} = 'http://foswiki.org/bin';
+$build->{UPLOADTARGETSCRIPT} = 'https://foswiki.org/bin';
# Script extension
$build->{UPLOADTARGETSUFFIX} = '';
</verbatim>
Oops, something went wrong.

0 comments on commit 91fee26

Please sign in to comment.