Skip to content

Commit

Permalink
Item6042: use BuildContrib
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FastCGIEngineContrib@1583 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GilmarSantosJr authored and GilmarSantosJr committed Dec 26, 2008
1 parent 55ac034 commit 63702f0
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Foswiki/Contrib/FastCGIEngineContrib/DEPENDENCIES
@@ -0,0 +1 @@
FCGI, >0, cpan, FastCGI perl library
52 changes: 52 additions & 0 deletions lib/Foswiki/Contrib/FastCGIEngineContrib/build.pl
@@ -0,0 +1,52 @@
#!/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/TWiki/Contrib/Build.pm for
# details of how the build process works, and what files you
# have to provide and where.
#
# Requires the environment variable TWIKI_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
BEGIN {
unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} );
}

use Foswiki::Contrib::Build;

# Declare our build package
package BuildBuild;
use base qw( Foswiki::Contrib::Build );

sub new {
my $class = shift;
return bless( $class->SUPER::new( "BuildContrib", "Build" ), $class );
}

# Example: Override the build target
sub target_build {
my $this = shift;

$this->SUPER::target_build();

# Do other build stuff here
}

package main;

# Create the build object
$build = new BuildBuild();

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

0 comments on commit 63702f0

Please sign in to comment.