From 63702f066095da73a8eacd51db0c659cf6dff324 Mon Sep 17 00:00:00 2001 From: GilmarSantosJr Date: Fri, 26 Dec 2008 03:03:28 +0000 Subject: [PATCH] Item6042: use BuildContrib git-svn-id: http://svn.foswiki.org/trunk/FastCGIEngineContrib@1583 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- .../Contrib/FastCGIEngineContrib/DEPENDENCIES | 1 + .../Contrib/FastCGIEngineContrib/build.pl | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 lib/Foswiki/Contrib/FastCGIEngineContrib/DEPENDENCIES create mode 100755 lib/Foswiki/Contrib/FastCGIEngineContrib/build.pl diff --git a/lib/Foswiki/Contrib/FastCGIEngineContrib/DEPENDENCIES b/lib/Foswiki/Contrib/FastCGIEngineContrib/DEPENDENCIES new file mode 100644 index 0000000..012d8ec --- /dev/null +++ b/lib/Foswiki/Contrib/FastCGIEngineContrib/DEPENDENCIES @@ -0,0 +1 @@ +FCGI, >0, cpan, FastCGI perl library diff --git a/lib/Foswiki/Contrib/FastCGIEngineContrib/build.pl b/lib/Foswiki/Contrib/FastCGIEngineContrib/build.pl new file mode 100755 index 0000000..36a1403 --- /dev/null +++ b/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} ); +