source: trunk/FuncContrib/lib/TWiki/Contrib/FuncContrib/build.pl @ 736

Revision 736, 1.3 KB checked in by OlivierRaginel, 5 years ago (diff)

Item38: Removed ` from comment to ease security audit

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl -w
2use strict;
3#
4# Example build class. Copy this file to the equivalent place in your
5# plugin or contrib and edit.
6#
7# Read the comments at the top of lib/TWiki/Contrib/Build.pm for
8# details of how the build process works, and what files you
9# have to provide and where.
10#
11# Requires the environment variable TWIKI_LIBS (a colon-separated path
12# list) to be set to point at the build system and any required dependencies.
13# Usage: ./build.pl [-n] [-v] [target]
14# where [target] is the optional build target (build, test,
15# install, release, uninstall), test is the default.
16# Two command-line options are supported:
17# -n Don't actually do anything, just print commands
18# -v Be verbose
19#
20
21# Standard preamble
22BEGIN { unshift @INC, split( /:/, $ENV{TWIKI_LIBS} ) }
23
24use TWiki::Contrib::Build;
25
26# Declare our build package
27package BuildBuild;
28use base qw( TWiki::Contrib::Build );
29
30sub new {
31    my $class = shift;
32    return bless( $class->SUPER::new( "FuncContrib" ), $class );
33}
34
35# Example: Override the build target
36sub target_build {
37    my $this = shift;
38
39    $this->SUPER::target_build();
40
41    # Do other build stuff here
42}
43
44# Create the build object
45my $build = new BuildBuild();
46
47# Build the target on the command line, or the default target
48$build->build($build->{target});
49
Note: See TracBrowser for help on using the repository browser.