aboutsummaryrefslogtreecommitdiff
path: root/linux/binary_tarball/scripts/3_Configure_Source_Code.sh
diff options
context:
space:
mode:
authorBeatLink <beatlink@protonmail.com>2019-08-16 20:00:38 -0500
committerBeatLink <beatlink@protonmail.com>2019-08-16 20:00:38 -0500
commitd16a5b29e81bb6e0e58af2a97484defccacf355c (patch)
tree4ef06da3e1d9548a99fc4ce8adf4587d7bd14621 /linux/binary_tarball/scripts/3_Configure_Source_Code.sh
parentmove toggle settings folder to linux script (diff)
downloadlibrewolf-linux-d16a5b29e81bb6e0e58af2a97484defccacf355c.tar.gz
librewolf-linux-d16a5b29e81bb6e0e58af2a97484defccacf355c.tar.bz2
librewolf-linux-d16a5b29e81bb6e0e58af2a97484defccacf355c.zip
Move branding and settings to seperate repos and move browser to top level
Diffstat (limited to 'linux/binary_tarball/scripts/3_Configure_Source_Code.sh')
-rwxr-xr-xlinux/binary_tarball/scripts/3_Configure_Source_Code.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/linux/binary_tarball/scripts/3_Configure_Source_Code.sh b/linux/binary_tarball/scripts/3_Configure_Source_Code.sh
new file mode 100755
index 0000000..9adc430
--- /dev/null
+++ b/linux/binary_tarball/scripts/3_Configure_Source_Code.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+printf "\n\n------------------------------ FINAL PREBUILD CONFIGURATION ---------------------------------\n";
+
+# Setup Script Variables
+SOURCE_CODE_FOLDER=$1;
+SOURCE_CODE_CUSTOMIZATION_FOLDER=$2;
+_POCKET_SED_STRING="s/'pocket'/#'pocket'/g";
+_POCKET_FILE=$SOURCE_CODE_FOLDER/browser/components/moz.build;
+
+# Copy Source Code Changes to Source Code
+printf "\nCopying branding and source code changes to firefox source code\n";
+cp -r $SOURCE_CODE_CUSTOMIZATION_FOLDER/* $SOURCE_CODE_FOLDER/;
+
+# Disables Pocket
+printf "\nDisabling Pocket\n";
+sed -i $_POCKET_SED_STRING $_POCKET_FILE;
+
bgstack15