File tree Expand file tree Collapse file tree 3 files changed +0
-100
lines changed
Expand file tree Collapse file tree 3 files changed +0
-100
lines changed Original file line number Diff line number Diff line change 1919# releases signed by EFF :/. We should find a more elegant arrangement.
2020
2121cd $( dirname $0 )
22- RULESETS_JSON=pkg/rulesets.json
2322
2423if [ -n " $1 " ]; then
2524 BRANCH=` git branch | head -n 1 | cut -d \ -f 2-`
@@ -41,17 +40,6 @@ echo "Building chrome version" $VERSION
4140# Clean up obsolete ruleset databases, just in case they still exist.
4241rm -f src/chrome/content/rules/default.rulesets src/defaults/rulesets.sqlite
4342
44- # Only generate the ruleset database if any rulesets have changed. Tried
45- # implementing this with make, but make is very slow with 15k+ input files.
46- needs_update () {
47- find src/chrome/content/rules/ -newer $RULESETS_JSON | \
48- grep -q .
49- }
50- if [ ! -f " $RULESETS_JSON " ] || needs_update ; then
51- echo " Generating ruleset DB"
52- python2.7 ./utils/make-json.py && bash utils/validate.sh && cp pkg/rulesets.json src/chrome/content/rulesets.json
53- fi
54-
5543sed -e " s/VERSION/$VERSION /g" chromium/updates-master.xml > chromium/updates.xml
5644
5745mkdir -p pkg/crx/rules
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ APP_NAME=https-everywhere
1616# ./makexpi.sh 0.2.3.development.2
1717
1818cd " ` dirname $0 ` "
19- RULESETS_JSON=pkg/rulesets.json
2019ANDROID_APP_ID=org.mozilla.firefox
2120VERSION=` echo $1 | cut -d " -" -f 2`
2221
5756# Clean up obsolete ruleset databases, just in case they still exist.
5857rm -f src/chrome/content/rules/default.rulesets src/defaults/rulesets.sqlite
5958
60- # Only generate the ruleset database if any rulesets have changed. Tried
61- # implementing this with make, but make is very slow with 15k+ input files.
62- needs_update () {
63- find src/chrome/content/rules/ -newer $RULESETS_JSON | \
64- grep -q .
65- }
66- if [ ! -f " $RULESETS_JSON " ] || needs_update ; then
67- # This is an optimization to get the OS reading the rulesets into RAM ASAP;
68- # it's useful on machines with slow disk seek times; doing several of these
69- # at once allows the IO subsystem to seek more efficiently.
70- for firstchar in ` echo {a..z} {A..Z} {0..9}` ; do
71- # Those cover everything but it wouldn't matter if they didn't
72- nohup cat src/chrome/content/rules/" $firstchar " * .xml > /dev/null 2> /dev/null &
73- done
74- echo " Generating ruleset DB"
75- python2.7 ./utils/make-json.py
76- fi
77-
7859# =============== BEGIN VALIDATION ================
7960# Unless we're in a hurry, validate the ruleset library & locales
8061
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments