[mm-common] Concatenate the destination path only when needed
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mm-common] Concatenate the destination path only when needed
- Date: Wed, 2 Sep 2009 01:56:25 +0000 (UTC)
commit 58352faf6fcec7742a23fe5acf64e1e656f57343
Author: Daniel Elstner <danielk openismus com>
Date: Wed Sep 2 03:28:53 2009 +0200
Concatenate the destination path only when needed
* util/doc-install.pl: Move the assignment to $out_file into the
conditional block where it is actually used.
util/doc-install.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/util/doc-install.pl b/util/doc-install.pl
index 19515ad..aeab988 100644
--- a/util/doc-install.pl
+++ b/util/doc-install.pl
@@ -207,7 +207,6 @@ my %basename_hash = ();
foreach my $in_name (@ARGV)
{
my $basename = path_basename($in_name);
- my $out_name = File::Spec->catfile($target_dir, $basename);
# If there are multiple files with the same base name in the list, only
# the first one will be installed. This behavior makes it very easy to
@@ -215,6 +214,7 @@ foreach my $in_name (@ARGV)
unless (exists $basename_hash{$basename})
{
$basename_hash{$basename} = undef;
+ my $out_name = File::Spec->catfile($target_dir, $basename);
install_file($in_name, $out_name, $basename);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]