#! /usr/bin/perl
use strict;
use warnings;
use File::Copy;
use File::Path;
use File::Basename;
my $web_dir = 'directory';
if (! -d 'directory.slb.com') {
mkdir("$web_dir", 0777);
}
# file list to be checked out from CVS
my @CVSfiles = qw(
development/web-files/help/file.xx
development/web-files/help/file2.xx
development/web-files/help/images/file.xx
development/web-files/help/images/file2.xx
development/web-files/help/change-process/file.xx
development/web-files/help/change-process/file2.xx
development/web-files/help/corporate-identity/file.xx
development/web-files/help/corporate-identity/file2.xx
development/web-files/help/example-clients/file.xx
development/web-files/help/example-clients/file2.xx
);
foreach my $file ( @CVSfiles ) {
my $dir = dirname($file);
mkpath($dir) if ! -d $dir;
}
|