Skip to content

Commit

Permalink
Item12952: more missing files
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@17845 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Aug 1, 2014
1 parent 98d0ecd commit a4685b5
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ConfigureContrib/data/System/ConfigureContrib.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
%META:TOPICINFO{author="ProjectContributor" date="1402037814" format="1.1" version="1"}%
---+!! !ConfigureContrib
<!--
* Set SHORTDESCRIPTION = %$SHORTDESCRIPTION%
-->
%SHORTDESCRIPTION%

%TOC%

Legacy =configure=. To be replaced by something much nicer.

| Author(s): | Foswiki Contributors |
| Copyright: | Copyright &copy; 2014 Foswiki |
| License: | [[http://www.gnu.org/licenses/old-licenses/gpl-2.0.html][Gnu General Public License v2]] |
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| Dependencies: | %$DEPENDENCIES% |
| Home page: | http://foswiki.org/bin/view/Extensions/ConfigureContrib |
| Support: | http://foswiki.org/bin/view/Support/ConfigureContrib |

<!-- Do _not_ attempt to edit this topic; it is auto-generated. -->

32 changes: 32 additions & 0 deletions ConfigureContrib/lib/Foswiki/Configure/TypeUIs/LOGVIEWER.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See bottom of file for license and copyright information

package Foswiki::Configure::TypeUIs::LOGVIEWER;

# The LOGVIEWER pluggable adds Values of type "LOGVIEWER", hence
# we need this type.

use strict;
use warnings;

use Foswiki::Configure::TypeUIs::SELECT ();
our @ISA = ('Foswiki::Configure::TypeUIs::SELECT');

1;
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2014 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read LICENSE in the root of this distribution.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
As per the GPL, removal of this notice is prohibited.
75 changes: 75 additions & 0 deletions ConfigureContrib/lib/Foswiki/Contrib/ConfigureContrib/build.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#!/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
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('ConfigureContrib');

# 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

0 comments on commit a4685b5

Please sign in to comment.