Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FCGI, >0, cpan, FastCGI perl library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} ); | ||
|