foxgirl-linux/binary_tarball/scripts/3_Configure_Source_Code.sh

20 lines
658 B
Bash
Raw Normal View History

#!/bin/sh
printf "\n\n------------------------------ FINAL PREBUILD CONFIGURATION ---------------------------------\n";
2019-07-21 07:30:19 +02:00
# Setup Script Variables
SOURCE_CODE_FOLDER=$1;
2019-08-17 05:32:17 +02:00
_COMMON_REPO='git@gitlab.com:librewolf-community/browser/common.git';
2019-07-21 07:30:19 +02:00
_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";
2019-08-17 05:32:17 +02:00
git clone $_COMMON_REPO common;
cp -r common/source_files/* $SOURCE_CODE_FOLDER/;
rm -rf common;
2019-07-21 07:30:19 +02:00
# Disables Pocket
printf "\nDisabling Pocket\n";
2019-07-21 07:30:19 +02:00
sed -i $_POCKET_SED_STRING $_POCKET_FILE;