[Libreoffice-commits] .: solenv/bin
Jesús Corrius
jcorrius at kemper.freedesktop.org
Tue Oct 26 06:18:39 PDT 2010
solenv/bin/build.pl | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 2bf1bf5ce50468ab8e0b688bf1fa0ae5a16cbe91
Author: Jesús Corrius <jesus at softcatala.org>
Date: Tue Oct 26 15:16:27 2010 +0200
Don't check if ENABLE_ZENITY is defined but the value
diff --git a/solenv/bin/build.pl b/solenv/bin/build.pl
index 6ea9df9..e8537df 100755
--- a/solenv/bin/build.pl
+++ b/solenv/bin/build.pl
@@ -2154,35 +2154,35 @@ sub print_announce {
};
sub zenity_open {
- if (defined $ENV{ENABLE_ZENITY}) {
+ if ($ENV{ENABLE_ZENITY} eq "TRUE") {
my $zenity_pid = open3($zenity_in, $zenity_out, $zenity_err,
"zenity --notification --listen");
};
};
sub zenity_close {
- if (defined $ENV{ENABLE_ZENITY}) {
+ if ($ENV{ENABLE_ZENITY} eq "TRUE") {
sleep(1); # Give Zenity a chance to show the message.
kill 1, $zenity_pid;
};
};
sub zenity_icon {
- if (defined $ENV{ENABLE_ZENITY}) {
+ if ($ENV{ENABLE_ZENITY} eq "TRUE") {
my $filename = shift;
print $zenity_in "icon: $filename\n";
};
};
sub zenity_tooltip {
- if (defined $ENV{ENABLE_ZENITY}) {
+ if ($ENV{ENABLE_ZENITY} eq "TRUE") {
my $text = shift;
print $zenity_in "tooltip: LibreOffice Build: $text\n";
};
};
sub zenity_message {
- if (defined $ENV{ENABLE_ZENITY}) {
+ if ($ENV{ENABLE_ZENITY} eq "TRUE") {
my $text = shift;
print $zenity_in "message: $text\n";
};
More information about the Libreoffice-commits
mailing list