From 30481518c5d6fd4bdd9a6a93858fcaa7bb28fc6c Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 27 Jul 2010 23:50:01 +0000 Subject: bindir git-svn-id: https://ws10smt.googlecode.com/svn/trunk@440 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/dist-vest.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vest') diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index 5f99d4f0..f0ee99f9 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -174,10 +174,11 @@ sub modbin { local $_; my $bindir=shift; `mkdir -p $bindir`; + -d $bindir || die "couldn't make bindir $bindir"; for (@_) { my $src=$$_; $$_="$bindir/".basename($src); - `cp $src $$_`; + `cp -p $src $$_`; die "cp $src $$_ failed: $!" unless $? == 0; } } -- cgit v1.2.3