summaryrefslogtreecommitdiff
path: root/sysui/desktop/share/brand.pl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-02-08 00:15:12 +0100
committerJan Holesovsky <kendy@suse.cz>2011-02-08 00:15:12 +0100
commite1740510b7786803134411d9aa3a125642cf9fdc (patch)
tree24b829557ce13acc23dbd4b3da25fb2e9726a0c5 /sysui/desktop/share/brand.pl
parent06fc1ee4c4ee8de3a4d758cbca761a5e80a0873f (diff)
parent99fe0a11ca01d9e7f10acc1e138a579457c2f004 (diff)
Merge remote branch 'origin/libreoffice-3-3'
Conflicts: sfx2/source/appl/appserv.cxx
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 279302ab5f08..ec71b9f90995 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;