diff --git a/helpers/make-firefox b/helpers/make-firefox index 68395d43d2c56530529dcf7dd7b426ca88d25de2..0e03f65291d60af563e04df9b0ebc81048bf5e12 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (C) 2008-2012 Ruben Rodriguez <ruben@trisquel.info> # @@ -17,7 +17,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=2 +VERSION=3 . ./config @@ -25,7 +25,7 @@ rm debian/control # Make ubufox mandatory sed 's/Depends: lsb-release,/Depends: lsb-release, xul-ext-ubufox,/' -i debian/control.in -sed 's/iceweasel,/iceweasel, firefox, icecat,/' -i debian/control* +sed 's/iceweasel,/iceweasel, firefox, icecat,/' -i debian/control.in # Remove extra firefox metapackages sed '/Package: firefox/,/It can be safely removed/d' -i debian/control.in @@ -52,10 +52,11 @@ EOF # speed up build process #sed 's/\(^MOZ_WANT_UNIT_TESTS.*\)1/\1 0/' -i debian/rules -sed 's/\(^MOZ_ENABLE_BREAKPAD.*\)1/\1 0/' -i debian/rules +#sed 's/\(^MOZ_ENABLE_BREAKPAD.*\)1/\1 0/' -i debian/rules # Set release to unofficial -sed "s/\(^MOZ_BUILD_UNOFFICIAL.*\)0/\1 1/; s/release$/$CODENAME/" -i debian/rules +sed 's/\(^MOZ_BUILD_UNOFFICIAL.*\)0/\1 1/' debian/config/branch.mk -i +#sed "s/release$/$CODENAME/" -i debian/rules #TARBALL=$(ls *.tar.bz2) #tar -jxf $TARBALL @@ -70,8 +71,8 @@ sed '1s/^/\nMOZ_PKG_NAME\t\t:= abrowser/' -i debian/build/mozbuild.mk ############################################################################3 ############################################################################3 ############################################################################3 -sed -i s/abrowser/abrowser-old/ debian/control* -sed "s_^Maintainer.*_Maintainer: $DEBFULLNAME <$DEBEMAIL>_g" -i debian/control* +sed -i s/abrowser/abrowser-old/ debian/control.in +sed "s_^Maintainer.*_Maintainer: $DEBFULLNAME <$DEBEMAIL>_g" -i debian/control.in # Replace Firefox branding find -type d | grep firefox | xargs rename s/firefox/abrowser/ @@ -83,12 +84,12 @@ replace firefox abrowser . replace Firefox Abrowser . replace FIREFOX ABROWSER . replace " Mozilla " " Trisquel " . -sed -i '1s/^Source:.*/Source: firefox/' debian/control* +sed -i '1s/^Source:.*/Source: firefox/' debian/control.in replace PACKAGES/abrowser PACKAGES/firefox . sed s/Trisquel/Mozilla/ compare-locales/scripts/compare-locales -i replace "iceweasel, abrowser" "iceweasel, firefox" . replace "Replaces: abrowser" "Replaces: firefox" . -sed s/Ubuntu/Trisquel/g debian/rules -i +#sed s/Ubuntu/Trisquel/g debian/rules -i sed s/ubuntu/trisquel/g debian/distribution.ini debian/config/mozconfig.in -i sed 's/ubuntu_version/trisquel_version/; s/Ubuntu 10.10/Trisquel 4.0/; s/1010/40/' -i debian/abrowser.postinst.in @@ -266,14 +267,14 @@ sed -i 's/<a\ href\=\"http\:\/\/www.mozilla.org\/\">Mozilla\ Project<\/a>/<a\ hr replace "Trisquel Public" "Mozilla Public" . replace "Trisquel Foundation" "Mozilla Foundation" . replace "Trisquel Corporation" "Mozilla Corporation" . -sed -i 's/iceweasel, abrowser, icecat,/iceweasel, firefox, icecat,/g' debian/control* +#sed -i 's/iceweasel, abrowser, icecat,/iceweasel, firefox, icecat,/g' debian/control.in # Restore useragent to Firefox -sed '/MOZ_UA_ABROWSER_VERSION/ s:Abrowser/:Firefox/:;' -i netwerk/protocol/http/nsHttpHandler.cpp +sed '/MOZILLA_UAVERSION/ s:Abrowser/:Firefox/:' -i netwerk/protocol/http/nsHttpHandler.cpp # Set migrator scripts cp browser/components/migration/src/FirefoxProfileMigrator.js browser/components/migration/src/AbrowserProfileMigrator.js -sed 's/Abrowser/Firefox/g; s/ABROWSER/FIREFOX/g; s/abrowser/firefox/g' -i browser/components/migration/src/FirefoxProfileMigrator.js +sed 's/Abrowser/Firefox/g; s/abrowser/firefox/g' -i browser/components/migration/src/FirefoxProfileMigrator.js #tar -cjf $TARBALL mozilla #rm mozilla -rf diff --git a/helpers/make-ubufox b/helpers/make-ubufox index ffc5f24e504d56dbe218cf80bb8b46e93b940d36..6b735bfc20847e076bb434087dab7dc3e1275585 100644 --- a/helpers/make-ubufox +++ b/helpers/make-ubufox @@ -17,7 +17,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=2 . ./config @@ -29,13 +29,11 @@ rm ./content/ubuntulogo32.png replace ubuntulogo32.png internet32.png . # This hack makes Firefox avoid sending a request for a list of plugins, instead returns a hardcoded xml list. -sed 's^https://mozilla-pfs.ubuntu.com/.*ID%^http://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%^; ' -i modules/distributions/Ubuntu.jsm +sed 's^https://mozilla-pfs.ubuntu.com/.*ID%^http://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%^; ' -i ./res/distributions/Ubuntu.jsm # Changes the link to pfs.mozilla.org in the install wizard sed 's_https://pfs.mozilla.org/plugins/_http://trisquel.info/browser/_' -i content/pluginInstallerWizard.js -#sed 's/ubuntu-artwork/trisquel-artwork/; s_http://start.ubuntu.com/_https://trisquel.info/welcome_; s/PREFIX +.*/PREFIX;/' -i ./components/aboutStartpage.js -rm components/aboutStartpage.js sed s/components// -i ./config_build.sh sed /components/d -i ./chrome.manifest sed /startup/d -i defaults/preferences/ubuntu-mods.js