2019-01-29 21:15:36 -05:00
|
|
|
Make some of the changes needed to the 'makeicecat' script, to allow it to run
|
|
|
|
in a snippet without network access. After this patch is applied, some
|
|
|
|
additional changes will be made using 'substitute*'.
|
|
|
|
|
|
|
|
diff --git a/makeicecat b/makeicecat
|
2019-06-04 04:10:04 -04:00
|
|
|
index 5a4390b..fcfa143 100644
|
2019-01-29 21:15:36 -05:00
|
|
|
--- a/makeicecat
|
|
|
|
+++ b/makeicecat
|
2019-06-04 04:10:04 -04:00
|
|
|
@@ -29,55 +29,55 @@ SOURCEDIR=icecat-$FFVERSION
|
2019-01-29 21:15:36 -05:00
|
|
|
|
|
|
|
DATA="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/data
|
|
|
|
|
|
|
|
-mkdir output
|
|
|
|
-cd output
|
|
|
|
+# mkdir output
|
|
|
|
+# cd output
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Retrieve FF source code
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
-rm mozilla-esr${FFMAJOR} $SOURCEDIR -rf
|
|
|
|
-
|
|
|
|
-wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz
|
|
|
|
-wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz.asc
|
|
|
|
-gpg --recv-keys --keyserver keyserver.ubuntu.com 24C6F355
|
|
|
|
-gpg --verify firefox-${FFVERSION}esr.source.tar.xz.asc
|
2019-06-04 04:10:04 -04:00
|
|
|
-echo -n 0a5f0c1d8d1e9443d85083d37fec32e5cc15c1001ea992d49745490065b4a023 firefox-${FFVERSION}esr.source.tar.xz |sha256sum -c -
|
2019-01-29 21:15:36 -05:00
|
|
|
-
|
|
|
|
-echo Extracting Firefox tarball
|
|
|
|
-tar -xf firefox-${FFVERSION}esr.source.tar.xz
|
|
|
|
-
|
|
|
|
-mv firefox-${FFVERSION} $SOURCEDIR
|
|
|
|
+# rm mozilla-esr${FFMAJOR} $SOURCEDIR -rf
|
|
|
|
+#
|
|
|
|
+# wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz
|
|
|
|
+# wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz.asc
|
|
|
|
+# gpg --recv-keys --keyserver keyserver.ubuntu.com 24C6F355
|
|
|
|
+# gpg --verify firefox-${FFVERSION}esr.source.tar.xz.asc
|
2019-06-04 04:10:04 -04:00
|
|
|
+# echo -n 0a5f0c1d8d1e9443d85083d37fec32e5cc15c1001ea992d49745490065b4a023 firefox-${FFVERSION}esr.source.tar.xz |sha256sum -c -
|
2019-01-29 21:15:36 -05:00
|
|
|
+#
|
|
|
|
+# echo Extracting Firefox tarball
|
|
|
|
+# tar -xf firefox-${FFVERSION}esr.source.tar.xz
|
|
|
|
+#
|
|
|
|
+# mv firefox-${FFVERSION} $SOURCEDIR
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Retrieve l10n
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
-mkdir l10n
|
|
|
|
-cd l10n
|
|
|
|
-while read line;do
|
|
|
|
- line=$(echo $line |cut -d' ' -f1)
|
|
|
|
- #[ $line = "es-ES" ] || continue # To speed up testing
|
|
|
|
- [ $line = "en-US" ] && continue
|
|
|
|
- hg clone https://hg.mozilla.org/l10n-central/$line
|
|
|
|
- mkdir -p $line/browser/chrome/browser/preferences
|
|
|
|
- touch $line/browser/chrome/browser/preferences/advanced-scripts.dtd
|
|
|
|
- rm -rf $line/.hg*
|
|
|
|
-done < ../$SOURCEDIR/browser/locales/shipped-locales
|
|
|
|
-cd ..
|
|
|
|
-
|
|
|
|
-mv l10n $SOURCEDIR
|
|
|
|
-
|
|
|
|
-hg clone http://hg.mozilla.org/l10n/compare-locales/
|
|
|
|
-cd compare-locales/
|
|
|
|
-hg checkout RELEASE_3_3_0
|
|
|
|
-cd ..
|
|
|
|
-rm compare-locales/.hg* compare-locales/.git* -rf
|
|
|
|
-mv compare-locales $SOURCEDIR/l10n
|
|
|
|
+# mkdir l10n
|
|
|
|
+# cd l10n
|
|
|
|
+# while read line;do
|
|
|
|
+# line=$(echo $line |cut -d' ' -f1)
|
|
|
|
+# #[ $line = "es-ES" ] || continue # To speed up testing
|
|
|
|
+# [ $line = "en-US" ] && continue
|
|
|
|
+# hg clone https://hg.mozilla.org/l10n-central/$line
|
|
|
|
+# mkdir -p $line/browser/chrome/browser/preferences
|
|
|
|
+# touch $line/browser/chrome/browser/preferences/advanced-scripts.dtd
|
|
|
|
+# rm -rf $line/.hg*
|
|
|
|
+# done < ../$SOURCEDIR/browser/locales/shipped-locales
|
|
|
|
+# cd ..
|
|
|
|
+#
|
|
|
|
+# mv l10n $SOURCEDIR
|
|
|
|
+#
|
|
|
|
+# hg clone http://hg.mozilla.org/l10n/compare-locales/
|
|
|
|
+# cd compare-locales/
|
|
|
|
+# hg checkout RELEASE_3_3_0
|
|
|
|
+# cd ..
|
|
|
|
+# rm compare-locales/.hg* compare-locales/.git* -rf
|
|
|
|
+# mv compare-locales $SOURCEDIR/l10n
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
-cd $SOURCEDIR
|
|
|
|
+# cd $SOURCEDIR
|
|
|
|
|
|
|
|
#for patch in $DATA/patches/*; do
|
|
|
|
# echo Patching with file: $patch
|
2019-06-04 04:10:04 -04:00
|
|
|
@@ -590,6 +590,6 @@ sed 's/777/755/;' -i toolkit/crashreporter/google-breakpad/Makefile.in
|
|
|
|
# Fix CVE-2012-3386
|
2019-01-29 21:15:36 -05:00
|
|
|
/bin/sed 's/chmod a+w/chmod u+w/' -i ./js/src/ctypes/libffi/Makefile.in ./toolkit/crashreporter/google-breakpad/Makefile.in ./toolkit/crashreporter/google-breakpad/src/third_party/glog/Makefile.in || true
|
|
|
|
|
|
|
|
-cd ..
|
|
|
|
-echo Packaging tarball
|
|
|
|
-tar cfj icecat-$ICECATVERSION.tar.bz2 $SOURCEDIR
|
|
|
|
+# cd ..
|
|
|
|
+# echo Packaging tarball
|
|
|
|
+# tar cfj icecat-$ICECATVERSION.tar.bz2 $SOURCEDIR
|