Skip to content

Commit 04cf8a8

Browse files
committed
Fix rules test by copying rulesets.json in extension make scripts rather than in validate.sh
1 parent bb6aa1d commit 04cf8a8

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

makecrx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ needs_update() {
4949
}
5050
if [ ! -f "$RULESETS_JSON" ] || needs_update ; then
5151
echo "Generating ruleset DB"
52-
python2.7 ./utils/make-json.py && bash utils/validate.sh
52+
python2.7 ./utils/make-json.py && bash utils/validate.sh && cp pkg/rulesets.json src/chrome/content/rulesets.json
5353
fi
5454

5555
sed -e "s/VERSION/$VERSION/g" chromium/updates-master.xml > chromium/updates.xml

makexpi.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ die() {
8484
}
8585

8686
bash utils/validate.sh
87+
cp pkg/rulesets.json src/chrome/content/rulesets.json
8788

8889
# The name/version of the XPI we're building comes from src/install.rdf
8990
XPI_NAME="pkg/$APP_NAME-`grep em:version src/install.rdf | sed -e 's/[<>]/ /g' | cut -f3`"

utils/validate.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,3 @@ else
4747
fi
4848
die "Validation of rulesets against $GRAMMAR failed."
4949
fi
50-
51-
cp "../pkg/rulesets.json" ../src/chrome/content/rulesets.json

0 commit comments

Comments
 (0)