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:  The master CruiseControl server that allocates builds by the module author.  CPAN users, who will use the last built build-label.
./Build.PL - This script. ./etc/build_number.txt - The module-persistent build number.
firstname.lastname@example.org John "Frotz" Fa'atuai email@example.com
&main( $build_label, $build_time ); exit( 0 );
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.
$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';
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.