summaryrefslogtreecommitdiff
path: root/vest
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 17:00:49 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 17:00:49 +0000
commit72253f2f9874caf830f541fdfb2d615845c503ff (patch)
tree83cd79bedc4950db3789fea2040d047c419098c9 /vest
parent1014a28a4ee2a9217109cbff5ced042a520f094e (diff)
File::Basename
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@420 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rwxr-xr-xvest/dist-vest.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl
index 3a39545b..d512dbb1 100755
--- a/vest/dist-vest.pl
+++ b/vest/dist-vest.pl
@@ -166,6 +166,7 @@ my $user = $ENV{"USER"};
-e $iniFile || die "Error: could not open $iniFile for reading\n";
open(INI, $iniFile);
+use File::Basename qw(basename);
#pass bindir, refs to vars holding bin
sub modbin {
local $_;
@@ -173,8 +174,7 @@ sub modbin {
`mkdir -p $bindir`;
for (@_) {
my $src=$$_;
- $$_="$bindir/".`basename $src`;
- chomp $$_;
+ $$_="$bindir/".basename($src);
`cp $src $$_`;
die "cp $src $$_ failed: $!" unless $? == 0;
}