aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/build.sh b/build.sh
index abaed47..d0958a1 100755
--- a/build.sh
+++ b/build.sh
@@ -123,16 +123,7 @@ s^_CONTENTSCRIPTS_^$CONTENTSCRIPTS^" \
fi
done
- # A hack to insert the contents of default_settings.json at the appropriate
- # location in background/main.js. Uses an internal sed expression to escape
- # and indent the JSON file for use in the external sed expression.
- sed -i 's/^ `DEFAULT SETTINGS`$/'"$(sed -E 's/([\\\&\/])/\\\1/g; s/^/ /; s/$/\\/' < default_settings.json) "/g "$BUILDDIR"/background/main.js
-
- if [ "$BROWSER" = "chromium" ]; then
- cp CHROMIUM_exports_init.js "$BUILDDIR"/exports_init.js
- else
- cp MOZILLA_exports_init.js "$BUILDDIR"/exports_init.js
- fi
+ ./write_exports_init.sh "$BROWSER" "$BUILDDIR" default_settings.json
cp -r copyright licenses/ "$BUILDDIR"
cp dummy "$BUILDDIR"