[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16649: {} A small patch, a new image for the logo and instructions for (in torbrowser/trunk/build-scripts: . branding)



Author: ioerror
Date: 2008-08-25 01:56:46 -0400 (Mon, 25 Aug 2008)
New Revision: 16649

Added:
   torbrowser/trunk/build-scripts/branding/
   torbrowser/trunk/build-scripts/branding/about.png
   torbrowser/trunk/build-scripts/branding/firefox-rebranding-instructions
   torbrowser/trunk/build-scripts/branding/firefox-torbrowser.diff
Log:
A small patch, a new image for the logo and instructions for how to put all of it together into a useful rebranded Firefox.


Added: torbrowser/trunk/build-scripts/branding/about.png
===================================================================
(Binary files differ)


Property changes on: torbrowser/trunk/build-scripts/branding/about.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: torbrowser/trunk/build-scripts/branding/firefox-rebranding-instructions
===================================================================
--- torbrowser/trunk/build-scripts/branding/firefox-rebranding-instructions	                        (rev 0)
+++ torbrowser/trunk/build-scripts/branding/firefox-rebranding-instructions	2008-08-25 05:56:46 UTC (rev 16649)
@@ -0,0 +1,35 @@
+To rebrand Firefox from BonEcho into TorBrowser, a small bit of patching is
+required.
+
+First apply the renaming patch:
+
+    /tmp/mozilla$ patch -p1 < ../firefox-torbrowser.diff
+    patching file browser/base/content/browserconfig.properties
+    patching file browser/base/content/old-homepage-default.properties
+    patching file browser/locales/en-US/chrome/branding/brand.dtd
+    patching file browser/locales/en-US/chrome/branding/brand.properties
+    patching file configure.in
+
+Now rebuild the configuration script with autoconf:
+    
+   /tmp/mozilla$ autoconf2.13 configure.in
+
+   [...] # Lots of Autoconf magic will fly by the terminal
+ 
+Ensure you have the proper .mozconfig from svn and then:
+
+    /tmp/mozilla$ ./configure --with-moz-app-displayname=TorBrowser
+
+Replace the about.png with the TorBrowser version:
+
+    mv about.png /tmp/mozilla/browser/base/branding/
+
+Build Firefox^H^H^H^H^H^H^H TorBrowser:
+
+    make
+
+And now you'll run it and see a newly rebranded browser:
+
+   ./dist/bin/run-mozilla.sh dist/bin/firefox 
+
+You should have a newly branded firefox!

Added: torbrowser/trunk/build-scripts/branding/firefox-torbrowser.diff
===================================================================
--- torbrowser/trunk/build-scripts/branding/firefox-torbrowser.diff	                        (rev 0)
+++ torbrowser/trunk/build-scripts/branding/firefox-torbrowser.diff	2008-08-25 05:56:46 UTC (rev 16649)
@@ -0,0 +1,60 @@
+diff -ru mozilla/browser/base/content/browserconfig.properties mozilla-torbrowser/browser/base/content/browserconfig.properties
+--- mozilla/browser/base/content/browserconfig.properties	2006-03-17 01:17:56.000000000 -0300
++++ mozilla-torbrowser/browser/base/content/browserconfig.properties	2008-08-24 18:53:19.000000000 -0300
+@@ -1,2 +1,2 @@
+ # Do NOT localize or otherwise change these values
+-browser.startup.homepage=http://www.mozilla.org/projects/bonecho/
++browser.startup.homepage=https://check.torproject.org/
+diff -ru mozilla/browser/base/content/old-homepage-default.properties mozilla-torbrowser/browser/base/content/old-homepage-default.properties
+--- mozilla/browser/base/content/old-homepage-default.properties	2007-02-04 22:38:31.000000000 -0300
++++ mozilla-torbrowser/browser/base/content/old-homepage-default.properties	2008-08-24 18:53:42.000000000 -0300
+@@ -1,2 +1,2 @@
+ # Do NOT localize or otherwise change these values
+-browser.startup.homepage=http://www.mozilla.org/projects/bonecho/
++browser.startup.homepage=https://check.torproject.org/
+diff -ru mozilla/browser/locales/en-US/chrome/branding/brand.dtd mozilla-torbrowser/browser/locales/en-US/chrome/branding/brand.dtd
+--- mozilla/browser/locales/en-US/chrome/branding/brand.dtd	2006-08-24 21:02:37.000000000 -0300
++++ mozilla-torbrowser/browser/locales/en-US/chrome/branding/brand.dtd	2008-08-24 18:50:07.000000000 -0300
+@@ -1,3 +1,3 @@
+-<!ENTITY  brandShortName        "Bon Echo">
+-<!ENTITY  brandFullName         "Bon Echo">            
++<!ENTITY  brandShortName        "TorBrowser">
++<!ENTITY  brandFullName         "TorBrowser">            
+ <!ENTITY  vendorShortName       "Mozilla">
+diff -ru mozilla/browser/locales/en-US/chrome/branding/brand.properties mozilla-torbrowser/browser/locales/en-US/chrome/branding/brand.properties
+--- mozilla/browser/locales/en-US/chrome/branding/brand.properties	2006-03-17 01:17:56.000000000 -0300
++++ mozilla-torbrowser/browser/locales/en-US/chrome/branding/brand.properties	2008-08-24 18:50:21.000000000 -0300
+@@ -1,3 +1,3 @@
+-brandShortName=Bon Echo
+-brandFullName=Bon Echo
++brandShortName=TorBrowser
++brandFullName=TorBrowser
+ vendorShortName=Mozilla
+diff -ru mozilla/configure.in mozilla-torbrowser/configure.in
+--- mozilla/configure.in	2008-03-26 16:03:05.000000000 -0300
++++ mozilla-torbrowser/configure.in	2008-08-24 04:19:18.000000000 -0300
+@@ -4317,7 +4317,7 @@
+ 
+ browser)
+   MOZ_APP_NAME=firefox
+-  MOZ_APP_DISPLAYNAME=BonEcho
++  MOZ_APP_DISPLAYNAME=TorBrowser
+   MOZ_XUL_APP=1
+   MOZ_PHOENIX=1
+   MOZ_SAFE_BROWSING=1
+@@ -4596,6 +4596,15 @@
+ 
+ AC_SUBST(MOZ_BRANDING_DIRECTORY)
+ 
++dnl Set this to rebrand the displayed name
++MOZ_ARG_WITH_STRING(displayname,
++[  --with-moz-app-displayname=displayname    Set the displayed brand name.],
++    MOZ_APP_DISPLAYNAME=$withval)
++
++AC_SUBST(MOZ_APP_DISPLAYNAME)
++
++
++
+ dnl ========================================================
+ dnl = Distribution ID
+ dnl ========================================================