build_vcp_executable.pl #2

  • //
  • guest/
  • perforce_software/
  • revml/
  • bin/
  • build_vcp_executable.pl
  • View
  • Commits
  • Open Download .zip Download (799 B)
#!/usr/local/bin/perl -w

=head1 NAME

build_vcp_executable.pl

=head1 SYNOPSIS

    cd VCP
    bin\build_vcp_executable.pl

=head1 DESCRIPTION

Builds vcp binaries using PAR's pp command.  Make sure you have all the
VCP prereqs installed because pp silently won't include any not found.

=cut


use strict;
use lib "lib";

use VCP::Utils qw( scan_pm_files_in );

## VCP uses lazy loading extensively...
my @modules = (
    scan_pm_files_in( "VCP"         ),
    scan_pm_files_in( "VCP::Source" ),
    scan_pm_files_in( "VCP::Filter" ),
    scan_pm_files_in( "VCP::Dest"   ),
    scan_pm_files_in( "VCP::Utils"  ),
    scan_pm_files_in( "VCP::UI"     ),
);

warn map "$_\n", @modules;

system
    "pp",
    "-o", "vcp.exe",
    "-lib=lib",
    map( "-add=$_", @modules ),
    "bin/vcp"
and die $!;

# Change User Description Committed
#11 4235 Barrie Slaymaker - experimental dist/vcp.pl added
#10 4164 Barrie Slaymaker - dist/vcp-rh8 checked in
#9 4154 Barrie Slaymaker - dist/vcp.exe passes almost all tests
#8 4143 Barrie Slaymaker - Further adaptation to vcp.exe packaging format
#7 4142 Barrie Slaymaker - vcp.exe now comes hardcoded with the modules packed in it
#6 4132 Barrie Slaymaker - build_vcp_executable.pl now tests vcp.exe a bit
    - requires WINZIP command line utility WZUNZIP.EXE in the PATH
- vcp.exe should now have all required modules
#5 4126 Barrie Slaymaker - Comments with leading hyphens and embedded quotes are
  now tested for
- VCP::Dest::cvs now handles comments with embedded double
  quotes on Win32
#4 4082 Barrie Slaymaker - dist/vcp.exe now exists for testing
    - online help and config file commenting are broken still
#3 4012 Barrie Slaymaker - Remove dependance on pseudohashes (deprecated Perl feature)
#2 4007 Barrie Slaymaker - bin/* are now all executable
#1 3642 Barrie Slaymaker - First cut at PAR based script to build vcp.exe