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