Ignore:
Timestamp:
12/13/08 16:58:36 (3 years ago)
Author:
CrawfordCurrie
Message:

Item456: work in progress

Location:
trunk/MailInContrib/lib/Foswiki
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/MailInContrib/lib/Foswiki/Contrib/MailInContrib/build.pl

    r1065 r1323  
    11#!/usr/bin/perl -w 
    2 # 
    3 # Example build class. Copy this file to the equivalent place in your 
    4 # plugin or contrib and edit. 
    5 # 
    6 # Requires the environment variable FOSWIKI_LIBS (a colon-separated path 
    7 # list) to be set to point at the build system and any required dependencies. 
    8 # Usage: ./build.pl [-n] [-v] [target] 
    9 # where [target] is the optional build target (build, test, 
    10 # install, release, uninstall), test is the default. 
    11 # Two command-line options are supported: 
    12 # -n Don't actually do anything, just print commands 
    13 # -v Be verbose 
    14 # 
    15  
    16 # Standard preamble 
    172BEGIN { 
    183  foreach my $pc (split(/:/, $ENV{FOSWIKI_LIBS})) { 
     
    216} 
    227 
    23 use TWiki::Contrib::Build; 
    24  
    25 # Declare our build package 
    26 { package MailInBuild; 
    27  
    28   @MailInBuild::ISA = ( "TWiki::Contrib::Build" ); 
    29  
    30   sub new { 
    31     my $class = shift; 
    32     return bless( $class->SUPER::new( "MailInContrib" ), $class ); 
    33   } 
    34  
    35   # Example: Override the build target 
    36   sub target_build { 
    37     my $this = shift; 
    38  
    39     $this->SUPER::target_build(); 
    40  
    41     # Do other build stuff here 
    42   } 
    43 } 
     8use Foswiki::Contrib::Build; 
    449 
    4510# Create the build object 
    46 $build = new MailInBuild(); 
     11$build = new Foswiki::Contrib::Build("MailInContrib"); 
    4712 
    4813# Build the target on the command line, or the default target 
Note: See TracChangeset for help on using the changeset viewer.