summaryrefslogtreecommitdiff
path: root/sysui/desktop/share/brand.pl
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-01-08 20:12:41 +0100
committerPetr Mladek <pmladek@suse.cz>2011-01-10 16:49:46 +0100
commit6a72e7759946bcf227c6886e4e24732372ecb353 (patch)
treea9c83f00bd3452e27c6c202a4d82de01e1f70f2c /sysui/desktop/share/brand.pl
parent18e2b6173baecd1c24afdd8ccb3eb9e3ce8235b3 (diff)
Really set BrOffice in the linux desktop files
* dekstop files need "pt_BR" instead of "pt-BR" (undescore vs. dash) * "%PRODUCTNAME_BR" was wrongly substitured to "${PRODUCTNAME} ${PRODUCTVERSION}_BR"; it should be "${PRODUCTNAME_BR} ${PRODUCTVERSION}" Signed off by Michael Meeks
Diffstat (limited to 'sysui/desktop/share/brand.pl')
-rw-r--r--sysui/desktop/share/brand.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysui/desktop/share/brand.pl b/sysui/desktop/share/brand.pl
index 9a1b0af57816..ea689c310587 100644
--- a/sysui/desktop/share/brand.pl
+++ b/sysui/desktop/share/brand.pl
@@ -39,6 +39,7 @@ $destdir = pop @ARGV;
mkdir $destdir,0777;
$productname = "LibreOffice";
+$productname_br = "BrOffice";
$productfilename = "libreoffice";
$prefix = "";
$iconprefix = "";
@@ -50,6 +51,10 @@ while ($_ = $ARGV[0], /^-/) {
$productname = $ARGV[0];
shift;
}
+ if (/^-b/) {
+ $productname_br = $ARGV[0];
+ shift;
+ }
if (/^-u/) {
$productfilename = $ARGV[0];
shift;
@@ -116,6 +121,9 @@ while (<>) {
}
}
+ # replace %PRODUCTNAME_BR placeholders
+ s/%PRODUCTNAME_BR/$productname_br/g;
+
# replace %PRODUCTNAME placeholders
s/%PRODUCTNAME/$productname/g;