diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-27 23:50:01 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-27 23:50:01 +0000 |
commit | df6823ca325ebdfcb5478d69c12ae4c443ba396e (patch) | |
tree | 3b8ecae7e18169d426be774be8d782cd8ecd89b6 | |
parent | 22712618e459abb9ab3a72b480b472fdd685b678 (diff) |
bindir
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@440 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-x | vest/dist-vest.pl | 3 |
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; } } |