Skip to content

Commit f0a5998

Browse files
committed
makexpi.sh: Don't copy and delete rules a second time.
This reduces `make` runtime ~40% on one of my (slow) systems.
1 parent 9aa8487 commit f0a5998

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

makexpi.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ fi
139139
cp -a src/ pkg/xpi-eff/
140140
rm -r pkg/xpi-eff/chrome/content/rules
141141
[ -e pkg/xpi-amo ] && rm -rf pkg/xpi-amo
142-
cp -a src/ pkg/xpi-amo/
143-
rm -r pkg/xpi-amo/chrome/content/rules
142+
cp -a pkg/xpi-eff/ pkg/xpi-amo/
144143
# The AMO version of the package cannot contain the updateKey or updateURL tags
145144
sed -i.bak -e '/updateKey/d' -e '/updateURL/d' pkg/xpi-amo/install.rdf
146145
rm pkg/xpi-amo/install.rdf.bak

0 commit comments

Comments
 (0)