Skip to content

Commit 809238d

Browse files
koops76Hainish
authored andcommitted
Delete make-json.py (EFForg#12738)
1 parent 576b906 commit 809238d

File tree

3 files changed

+0
-100
lines changed

3 files changed

+0
-100
lines changed

makecrx.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# releases signed by EFF :/. We should find a more elegant arrangement.
2020

2121
cd $(dirname $0)
22-
RULESETS_JSON=pkg/rulesets.json
2322

2423
if [ -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.
4241
rm -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-
5543
sed -e "s/VERSION/$VERSION/g" chromium/updates-master.xml > chromium/updates.xml
5644

5745
mkdir -p pkg/crx/rules

makexpi.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ APP_NAME=https-everywhere
1616
# ./makexpi.sh 0.2.3.development.2
1717

1818
cd "`dirname $0`"
19-
RULESETS_JSON=pkg/rulesets.json
2019
ANDROID_APP_ID=org.mozilla.firefox
2120
VERSION=`echo $1 | cut -d "-" -f 2`
2221

@@ -57,24 +56,6 @@ fi
5756
# Clean up obsolete ruleset databases, just in case they still exist.
5857
rm -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

utils/make-json.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)