5
die ("Usage: gettools SRCDIR DSTDIR TOOL [TOOL...]\n")
8
my $srcdir = shift (@ARGV);
9
die ("gettools: source dir $srcdir not found\n") unless (-d $srcdir);
10
my $dstdir = shift (@ARGV);
11
die ("gettools: dest dir $dstdir not found\n") unless (-d $dstdir);
13
gettool ($srcdir, $dstdir, $t);
17
my ($sd, $dd, $t) = @_;
19
return unless (-f $src);
23
(stat($src))[9] > (stat($dst))[9]) {
24
system ("cp '$src' '$dst'") and die ("gettools: cp failed\n");