Build.PL -- Module::Build Build script for REST::Resource
perl Build.PL ./Build ## or perl Build ./Build test ./Build install
This script is the build script for REST::Resource. This build script is intended to be run under two semantic environments: [1] The master CruiseControl server that allocates builds by the module author. [2] CPAN users, who will use the last built build-label.
./Build.PL - This script. ./etc/build_number.txt - The module-persistent build number.
frotz@acm.org John "Frotz" Fa'atuai ffaatuai@cisco.com
USAGE:
&main( $build_label, $build_time ); exit( 0 );
DESCRIPTION:
This method allocates a Module::Build instance, which verifies the environment requirements and generates the resulting ./Build script. Additionally, if run on Windows, a batch file wrapper is generated. The parameters below are ONLY used by the master CruiseControl instance. They are not used by CPAN module users.
PARAMETERS:
$build_label -- CruiseControl build-label value. $build_time -- CruiseControl build-time value.
my( $contents ) = &read( $file );
This method will read the specified file and return its contents to the caller as a scalar.
&write( $file, $contents );
This method will [re-]write the specified file with $contents.
&update( $filename, $signature, $build_number );
This method will update $filename by replacing any line matching the $signature pattern with: our( $VERSION ) = '$build_number';
&repository_commit();
This code should ONLY be invoked on a machine that has access to the Subversion (either the master or a mirror). This method handles the final check-in and commit of changes within the build tree. In a perfect world, there is nothing to commit.
To install REST::Resource, copy and paste the appropriate command in to your terminal.
cpanm
cpanm REST::Resource
CPAN shell
perl -MCPAN -e shell install REST::Resource
For more information on module installation, please visit the detailed CPAN module installation guide.