[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torbrowser/maint-2.2] make tbb write its version into the prefs.js file (closes: #3654)
commit 017ca6774ee2defa22e93fbbe00f3bf7000c9111
Author: Erinn Clark <erinn@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits