- Timestamp:
- 12/13/08 16:58:36 (3 years ago)
- Location:
- trunk/MailInContrib/lib/Foswiki
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from trunk/MailInContrib/lib/TWiki)
-
Contrib/MailInContrib/build.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MailInContrib/lib/Foswiki/Contrib/MailInContrib/build.pl
r1065 r1323 1 1 #!/usr/bin/perl -w 2 #3 # Example build class. Copy this file to the equivalent place in your4 # plugin or contrib and edit.5 #6 # Requires the environment variable FOSWIKI_LIBS (a colon-separated path7 # 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 commands13 # -v Be verbose14 #15 16 # Standard preamble17 2 BEGIN { 18 3 foreach my $pc (split(/:/, $ENV{FOSWIKI_LIBS})) { … … 21 6 } 22 7 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 } 8 use Foswiki::Contrib::Build; 44 9 45 10 # Create the build object 46 $build = new MailInBuild();11 $build = new Foswiki::Contrib::Build("MailInContrib"); 47 12 48 13 # Build the target on the command line, or the default target
Note: See TracChangeset
for help on using the changeset viewer.
