summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-27 23:50:01 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-27 23:50:01 +0000
commit30481518c5d6fd4bdd9a6a93858fcaa7bb28fc6c (patch)
tree6c0c516f42cc06eca808edbea26b1c6de7b17983
parentac8544c5c53e0211a2c9778e4ba26f513cef9525 (diff)
bindir
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@440 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xvest/dist-vest.pl3
1 files changed, 2 insertions, 1 deletions
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;
}
}