Commit 97c612d3 by Ruben Rodriguez

Fixed firefox helper to make it compile, although it needs some extra work

parent d057cfb4
......@@ -30,12 +30,12 @@ sed 's/iceweasel,/iceweasel, firefox, icecat,/' -i debian/control*
sed '/Package: firefox/,/It can be safely removed/d' -i debian/
# Remove Ubuntu bookmarks
sed -i /ubuntu-bookmarks/d debian/patches/series
sed -i /ubuntu-bookmarks/d debian/patches/
rm debian/patches/ubuntu-bookmarks*
#Unbrand url codes for google and amazon
rm debian/patches/ubuntu-codes*
sed /ubuntu-codes/d debian/patches/series -i
#rm debian/patches/ubuntu-codes*
#sed /ubuntu-codes/d debian/patches/ -i
cat << EOF > debian/distribution.ini
......@@ -56,9 +56,9 @@ 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
TARBALL=$(ls *.tar.bz2)
tar -jxf $TARBALL
#TARBALL=$(ls *.tar.bz2)
#tar -jxf $TARBALL
sed "s/^MOZ_APP_NAME\t.*/MOZ_APP_NAME\t\t:= abrowser/; s/firefox/abrowser/" debian/rules -i
# Hack to avoid compilation to fail on 3.0x kernel
......@@ -82,7 +82,7 @@ replace FIREFOX ABROWSER .
replace " Mozilla " " Trisquel " .
sed -i '1s/^Source:.*/Source: firefox/' debian/control*
replace PACKAGES/abrowser PACKAGES/firefox .
sed s/Trisquel/Mozilla/ debian/compare-locales/scripts/compare-locales -i
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
......@@ -90,14 +90,14 @@ sed s/ubuntu/trisquel/g debian/distribution.ini debian/config/ -i
sed 's/ubuntu_version/trisquel_version/; s/Ubuntu 10.10/Trisquel 4.0/; s/1010/40/' -i debian/
# Redirect feedback menu
sed -i mozilla/browser/base/content/utilityOverlay.js
sed -i browser/base/content/utilityOverlay.js
# Make abrowser-locale-$lang provide firefox-locale-$lang
sed 's/Package:\(.*\)/Package:\1\nProvides: firefox-locale-@LANGCODE@/g' debian/control.langpacks* -i
#sed 's/Package:\(.*\)/Package:\1\nProvides: firefox-locale-@LANGCODE@/g' debian/control.langpacks* -i
# Branding files
rm mozilla/browser/branding/* -rf
cp -a $DATA/branding/ mozilla/browser/branding/$CODENAME
rm browser/branding/* -rf
cp -a $DATA/branding/ browser/branding/$CODENAME
cat << EOF > debian/config/
......@@ -109,7 +109,7 @@ L10N_REPO =
#set default layout
cat << EOF |patch -p0 -N -r /dev/null
cat << EOF |patch -p1 -N -r /dev/null
--- mozilla/browser/base/content/browser.xul.old 2011-07-18 02:35:10.000000000 +0000
+++ mozilla/browser/base/content/browser.xul 2011-07-18 02:40:51.000000000 +0000
@@ -477,6 +477,7 @@
......@@ -150,7 +150,7 @@ cat << EOF |patch -p0 -N -r /dev/null
#Trisquel custom bookmarks
cat << EOF > mozilla/browser/locales/generic/profile/
cat << EOF > browser/locales/generic/profile/
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
......@@ -235,8 +235,8 @@ EOF
echo "debian/search/* /usr/lib/abrowser-addons/searchplugins" >> debian/
# Disable search field at extensions panel
#sed '/header-search/d; /search.placeholder/d' -i mozilla/toolkit/mozapps/extensions/content/extensions.xul
cat << EOF >> ./mozilla/toolkit/mozapps/extensions/content/extensions.css
#sed '/header-search/d; /search.placeholder/d' -i toolkit/mozapps/extensions/content/extensions.xul
cat << EOF >> toolkit/mozapps/extensions/content/extensions.css
#header-search {
......@@ -257,7 +257,7 @@ done
sed -i 's/<a\ href\=\"http\:\/\/\/\">Mozilla\ Project<\/a>/<a\ href\=\"http\:\/\/\/\"\>Trisquel\ Project<\/a>/g' mozilla/browser/base/content/overrides/app-license.html
sed -i 's/<a\ href\=\"http\:\/\/\/\">Mozilla\ Project<\/a>/<a\ href\=\"http\:\/\/\/\"\>Trisquel\ Project<\/a>/g' browser/base/content/overrides/app-license.html
# We went too far...
replace "Trisquel Public" "Mozilla Public" .
......@@ -266,14 +266,14 @@ replace "Trisquel Corporation" "Mozilla Corporation" .
sed -i 's/iceweasel, abrowser, icecat,/iceweasel, firefox, icecat,/g' debian/control*
# Restore useragent to Firefox
sed '/MOZ_UA_ABROWSER_VERSION/ s:Abrowser/:Firefox/:;' -i mozilla/netwerk/protocol/http/nsHttpHandler.cpp
sed '/MOZ_UA_ABROWSER_VERSION/ s:Abrowser/:Firefox/:;' -i netwerk/protocol/http/nsHttpHandler.cpp
# Set migrator scripts
cp mozilla/browser/components/migration/src/FirefoxProfileMigrator.js mozilla/browser/components/migration/src/AbrowserProfileMigrator.js
sed 's/Abrowser/Firefox/g; s/ABROWSER/FIREFOX/g; s/abrowser/firefox/g' -i mozilla/browser/components/migration/src/FirefoxProfileMigrator.js
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
tar -cjf $TARBALL mozilla
rm mozilla -rf
#tar -cjf $TARBALL mozilla
#rm mozilla -rf
#cp $DATA/control debian/control
# Postinst script to manage profile migration and system links
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment