[tbb-commits] [tor-launcher/master] Bug 12451: add option to hide TBB's logo

brade at torproject.org brade at torproject.org
Tue Jul 15 14:26:36 UTC 2014


commit 6cf204d64cb8829ca4a7a8d3bc8d601ff4cf534d
Author: Kathy Brade <brade at pearlcrescent.com>
Date:   Tue Jul 15 10:22:51 2014 -0400

    Bug 12451: add option to hide TBB's logo
    
    Use 'make TL_LOGO=- ...' to build without a logo or
        'make TL_LOGO=path.png ...' to substitute a custom logo (115 x 80 pixels).
---
 Makefile |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 940bbdc..f629d52 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-### Copyright (c) 2013, The Tor Project, Inc.
+### Copyright (c) 2014, The Tor Project, Inc.
 ### See src/LICENSE for licensing information.
 
 EXT_NAME=tor-launcher
@@ -28,6 +28,13 @@ pkg-prepare:	clean
 	@mkdir -p pkg
 	$(eval TMP="$(shell mktemp -d "/tmp/$(EXT_NAME).XXXXXX")")
 	@cp -a "src" "$(TMP)/$(EXT_NAME)"
+	@if [ -n "$(TL_LOGO)" ]; then \
+		if [ "$(TL_LOGO)" = "-" ]; then \
+			rm "$(TMP)/$(EXT_NAME)/chrome/skin/tbb-logo.png"; \
+		else \
+			cp -p "$(TL_LOGO)" "$(TMP)/$(EXT_NAME)/chrome/skin/tbb-logo.png"; \
+		fi \
+	fi
 	@cp -a chrome.manifest.in "$(TMP)/$(EXT_NAME)"/chrome.manifest
 	@mv "$(TMP)/$(EXT_NAME)"/chrome/locale/en \
 	    "$(TMP)/$(EXT_NAME)"/chrome/locale/en-US



More information about the tbb-commits mailing list