1 Make some of the changes needed to the 'makeicecat' script, to allow it to run
2 in a snippet without network access. After this patch is applied, some
3 additional changes will be made using 'substitute*'.
5 diff --git a/makeicecat b/makeicecat
6 index 8be2362..48716f2 100755
9 @@ -31,55 +31,55 @@ SOURCEDIR=icecat-$FFVERSION
11 DATA="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/data
18 ###############################################################################
19 # Retrieve FF source code
20 ###############################################################################
22 -rm mozilla-esr${FFMAJOR} $SOURCEDIR -rf
24 -wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz
25 -wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz.asc
26 -gpg --recv-keys --keyserver keyserver.ubuntu.com 14F26682D0916CDD81E37B6D61B7B526D98F0353
27 -gpg --verify firefox-${FFVERSION}esr.source.tar.xz.asc
28 -echo -n ad3ea069c3d23aab360ad04ff4d0f5e556d3538f7dd4eae0690c4e9241537570 firefox-${FFVERSION}esr.source.tar.xz |sha256sum -c -
30 -echo Extracting Firefox tarball
31 -tar -xf firefox-${FFVERSION}esr.source.tar.xz
33 -mv firefox-${FFVERSION} $SOURCEDIR
34 +# rm mozilla-esr${FFMAJOR} $SOURCEDIR -rf
36 +# wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz
37 +# wget -N https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${FFVERSION}esr/source/firefox-${FFVERSION}esr.source.tar.xz.asc
38 +# gpg --recv-keys --keyserver keyserver.ubuntu.com 14F26682D0916CDD81E37B6D61B7B526D98F0353
39 +# gpg --verify firefox-${FFVERSION}esr.source.tar.xz.asc
40 +# echo -n ad3ea069c3d23aab360ad04ff4d0f5e556d3538f7dd4eae0690c4e9241537570 firefox-${FFVERSION}esr.source.tar.xz |sha256sum -c -
42 +# echo Extracting Firefox tarball
43 +# tar -xf firefox-${FFVERSION}esr.source.tar.xz
45 +# mv firefox-${FFVERSION} $SOURCEDIR
47 ###############################################################################
49 ###############################################################################
54 - line=$(echo $line |cut -d' ' -f1)
55 - #[ $line = "es-ES" ] || continue # To speed up testing
56 - [ $line = "en-US" ] && continue
57 - hg clone https://hg.mozilla.org/l10n-central/$line
58 - mkdir -p $line/browser/chrome/browser/preferences
59 - touch $line/browser/chrome/browser/preferences/advanced-scripts.dtd
61 -done < ../$SOURCEDIR/browser/locales/shipped-locales
66 -hg clone http://hg.mozilla.org/l10n/compare-locales/
68 -hg checkout RELEASE_3_3_0
70 -rm compare-locales/.hg* compare-locales/.git* -rf
71 -mv compare-locales $SOURCEDIR/l10n
75 +# line=$(echo $line |cut -d' ' -f1)
76 +# #[ $line = "es-ES" ] || continue # To speed up testing
77 +# [ $line = "en-US" ] && continue
78 +# hg clone https://hg.mozilla.org/l10n-central/$line
79 +# mkdir -p $line/browser/chrome/browser/preferences
80 +# touch $line/browser/chrome/browser/preferences/advanced-scripts.dtd
82 +# done < ../$SOURCEDIR/browser/locales/shipped-locales
87 +# hg clone http://hg.mozilla.org/l10n/compare-locales/
88 +# cd compare-locales/
89 +# hg checkout RELEASE_3_3_0
91 +# rm compare-locales/.hg* compare-locales/.git* -rf
92 +# mv compare-locales $SOURCEDIR/l10n
94 #######################################################
100 for patch in $DATA/patches/*.patch; do
101 @@ -603,6 +603,6 @@ sed 's/777/755/;' -i toolkit/crashreporter/google-breakpad/Makefile.in
103 /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
106 -echo Packaging tarball
107 -tar cfj icecat-$ICECATVERSION.tar.bz2 $SOURCEDIR
109 +# echo Packaging tarball
110 +# tar cfj icecat-$ICECATVERSION.tar.bz2 $SOURCEDIR