File-Vctools Version 0.05 NAME Compare different versions of text files and identify changes INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install SYNOPSIS File::Vctools is a collection of utility programs that help you to organise your projects. Currently, File::Vctools only runs on Windows and on Linux, but if somebody wants to run it on a platform other than Windows or Linux, the conversion should be easy. If you already have converted File::Vctools to a different platform, let me know at , I appreciate any feedback. Here is a first program that runs the components of File::Vctools: use strict; use warnings; use 5.010; use File::Vctools qw(get_mpath get_difftool); use File::Spec; use File::Slurp; use File::Temp qw(tempdir); my $difftool = get_difftool(); my $mpath = get_mpath(); my $cwd = File::Spec->rel2abs('.'); END { chdir $cwd if defined $cwd; } my $tempdir = tempdir(CLEANUP => 1); say "difftool is $difftool"; say "mpath is $mpath"; say "cwd is $cwd"; say "tempdir is $tempdir"; say ''; mkdir File::Spec->catdir($tempdir, 'XmlRepo'); mkdir File::Spec->catdir($tempdir, 'test_arch'); mkdir File::Spec->catdir($tempdir, 'Original'); mkdir File::Spec->catdir($tempdir, 'P001'); $ENV{VCTOOLDIR} = File::Spec->catdir($tempdir, 'XmlRepo'); write_file(File::Spec->catdir($tempdir, 'XmlRepo', 'vc_parameter.xml'), qq{\n}, qq{\n}, qq{ \n}, qq{\n}, ); write_file(File::Spec->catfile($tempdir, 'Original', 'file.txt'), qq{Line001\n}, qq{Line002\n}, qq{Line003\n}, qq{Line004\n}, ); chdir File::Spec->catdir($tempdir, 'P001') or die "Error-0010: chdir $!"; system $^X, File::Spec->catfile($mpath, 'vc_init.pl'); system $^X, File::Spec->catfile($mpath, 'vc_checkout.pl'), File::Spec->catfile($tempdir, 'Original', 'file.txt'); write_file(File::Spec->catfile('Work', 'F_file_Z001.txt'), qq{Line001\n}, qq{Line002 ***\n}, qq{Line003\n}, qq{Line004\n}, ); system $^X, File::Spec->catfile($mpath, 'vc_apply.pl'); system $^X, File::Spec->catfile($mpath, 'vc_status.pl'), '-a', '-o'; system $^X, File::Spec->catfile($mpath, 'vc_list.pl'); system $^X, File::Spec->catfile($mpath, 'vc_reset.pl'); chdir 'Data' or die "Error-0020: chdir $!"; write_file('orig.txt', qq{Orig001\n}, qq{Orig002\n}, qq{Orig003\n}, qq{Orig004\n}, qq{Orig005\n}, ); write_file('patch.txt', qq{\@\@ -2,4 +2,4 \@\@\n}, qq{ Orig002\n}, qq{-Orig003\n}, qq{+Orig003***\n}, qq{ Orig004\n}, ); system $^X, File::Spec->catfile($mpath, 'vc_merge.pl'), '--input=orig.txt', '--diff=patch.txt', '--output=out.txt'; SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc File::Vctools You can also look for information at: RT, CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-Vctools AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/File-Vctools CPAN Ratings http://cpanratings.perl.org/d/File-Vctools Search CPAN http://search.cpan.org/dist/File-Vctools/ COPYRIGHT AND LICENSE Copyright (C) 2010 by Klaus Eichner All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the artistic license, see http://www.opensource.org/licenses/artistic-license-1.0.php