[tor-commits] [torbrowser/master] make tbb write its version into the prefs.js file (closes: #3654)

erinn at torproject.org erinn at torproject.org
Sun Oct 23 23:18:29 UTC 2011


commit 017ca6774ee2defa22e93fbbe00f3bf7000c9111
Author: Erinn Clark <erinn at torproject.org>
Date:   Sun Aug 28 17:37:29 2011 +0100

    make tbb write its version into the prefs.js file (closes: #3654)
---
 build-scripts/osx.mk |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/build-scripts/osx.mk b/build-scripts/osx.mk
index 0b07e67..2e8b290 100644
--- a/build-scripts/osx.mk
+++ b/build-scripts/osx.mk
@@ -351,9 +351,8 @@ bundle_%:
 compressed-bundle_%:
 	LANGCODE=$* make -f osx.mk compressed-bundle-localized
 bundle-localized_%.stamp:
-	make -f osx.mk copy-files_$* install-extensions install-httpseverywhere install-noscript install-lang-extensions patch-vidalia-language patch-firefox-language patch-pidgin-language update-extension-pref final
+	make -f osx.mk copy-files_$* install-extensions install-httpseverywhere install-noscript install-lang-extensions patch-vidalia-language patch-firefox-language patch-pidgin-language update-extension-pref write-tbb-version final
 	touch bundle-localized_$*.stamp
-	cp extensions/torbutton.xpi .
 
 bundle-localized: bundle-localized_$(LANGCODE).stamp
 
@@ -433,5 +432,8 @@ update-extension-pref:
 	ext_ver=$$(sed -n '/em:version/{s,.*="\(.*\)".*,\1,p;q;}' $(BUNDLE)/Library/Application\ Support/Firefox/Profiles/profile/extensions/langpack-$(LANGCODE)@firefox.mozilla.org/install.rdf); \
 	sed -i -e "s/SHPONKA/langpack-$(LANGCODE)@firefox.mozilla.org:$$ext_ver/g" $(BUNDLE)/Library/Application\ Support/Firefox/Profiles/profile/prefs.js
 
+write-tbb-version:
+	printf 'user_pref("torbrowser.version", "%s");\n' "$(RELEASE_VER)" >> $(BUNDLE)/Library/Application\ Support/Firefox/Profiles/profile/prefs.js
+
 final: 
 	mv $(BUNDLE) $(BUNDLE).app





More information about the tor-commits mailing list